To maintain the expansion state of parent tasks as mentioned in the datasource, AutoExpandNodes function can be used.
The expected values for "AutoExpandNodes" option should be "true (or) false (or) callbackFunction".
|
$gantt_container.GanttControl({ .... // Callback function returns if the row is expanded or not based on datasource property 'isExpanded' AutoExpandNodes: function (activity) { // returning the previously saved expansion state if (activity.DataSource.isExpanded == false) return false; return true; }, .... }); |
� RadiantQ 2022. All Rights Reserved.