Set AutoExpandNodes as false to collapse all the parent tasks in the gantt table. The function expandTaskByID expands the particular parent task by its id.
Here is the code example:
|
$(document).ready(function () { .... $gantt_container.GanttControl({ .... AutoExpandNodes: false, .... }); function expandTaskByID() { // id of task to be expanded should be send as argument var activityView = ganttControl.ActivityViews.GetActivityViewByID(1); if (activityView != undefined || activityView != null) activityView.IsExpanded_M(true); } expandTaskByID(); }); |
� RadiantQ 2022. All Rights Reserved.