How to save the Gantt options in cookies?
When saving state in cookies is disabled (default setting) the end-user will not get back any changes made in Gantt view, after refreshing the page or closing file. If SaveStateInCookie option is set as true then the changes made in ZoomLevel, TablePanelWidth, TaskCollapsingState options are saved in cookies(memory) by using the below code.It will always return the saved state.
Here is the code example:
|
$('#gantt_container').GanttControl({ SaveStateInCookie: true, /*property: SaveStateInCookieOptions To specifies the save state options. */ SaveStateInCookieOptions: { /*property: ZoomLevel To save the chart zoom level */ ZoomLevel: true, /*property: TablePanelWidth To save the width of the table panel */ TablePanelWidth: true, /*property: TaskCollapsingState To save the collapsing state of the task */ TaskCollapsingState: false } }); |
� RadiantQ 2022. All Rights Reserved.