Version

TaskDataItemIdInitializing Event

Invoked when a new data item is created for a new ProjectTask, before adding the data item to the data source. It's used for the purposes of controlling assignment of id's to the data items that are created by the ListBackedProject when new project tasks are added.
Syntax
'Declaration
 
Public Event TaskDataItemIdInitializing As EventHandler(Of TaskDataItemIdInitializingEventArgs)
public event EventHandler<TaskDataItemIdInitializingEventArgs> TaskDataItemIdInitializing
Event Data

The event handler receives an argument of type TaskDataItemIdInitializingEventArgs containing data related to this event. The following TaskDataItemIdInitializingEventArgs properties provide information specific to this event.

PropertyDescription
DataItem Returns the data item.
DataItemId Specifies the data item id to use.
Task (Inherited from Infragistics.Controls.Schedules.ProjectTaskEventArgs)Returns the ProjectTask associated with the event.
Remarks
TaskDataItemIdInitializing event is raised when a new ProjectTask is to be commited to the data source. First an underlying data source item is created and then this event is raised to allow you to set a unique id to use for this data item. If this event is not hooked into or the event arg's TaskDataItemIdInitializingEventArgs.DataItemId is not set by the handler then the default logic is to create a new GUID string and use that as the id, assuming the id field is a string type. If it's not a string type then there's no built in logic to create unique id values. In such a case this event can also be utilized to assign unique id's to data items created by the ListBackedProject.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also