Maintain zoomToFit
18 Nov 20181 minute to read
In the Gantt control, While performing edit actions or dynamically change dataSource, the timeline gets refreshed. When zoomToFit toolbar item is clicked and perform editing actions or dynamically change dataSource, the timeline gets refreshed. So that, the timeline will not fit to the project any more.
Maintain zoomToFit after edit actions
We can maintain zoomToFit after editing actions(cell edit,dialog edit,taskbar edit) by using fitToProject method in actionComplete and taskbarEdited event.
Maintain zoomToFit after change dataSource dynamically
We can maintain zoomToFit after change dataSource dynamically, by calling fitToProject method in dataBound event.