How to find a activity view by it's ID?
|
// Returns the Gantt Model's internal activity/task provided an id. var ganttControl = $('#gantt_container').data("GanttControl"); var activityView = ganttControl.ActivityViews.GetActivityViewByID(id); |
And if you want to retrieve the bound data item in your data source, you can do this:
|
//To get the activity. var activity = activityView.Activity; // Task is the bound data source item var taskSource = activity.DataSource; |
� RadiantQ 2022. All Rights Reserved.