First, I would like to handle large data say like 3000 to 4000.
Is there a way to have them load in the lazy mode for better performance?
Secondly, is it possible to automatically expand the Gantt Timeline view when scrolling to the most left/right?
In simple, I’m looking for some kind of infinity scrolling mechanism in the Gantt timeline instead of rendering the whole timeline.
Another way to do that is to load only a certain amount of tasks. To load other tasks, you can use the gantt.parse method. Here is an example of the implementation: https://snippet.dhtmlx.com/5/253d73f85
Secondly, is it possible to automatically expand the Gantt Timeline view when scrolling to the most left/right?
In simple, I’m looking for some kind of infinity scrolling mechanism in the Gantt timeline instead of rendering the whole timeline.
There is no built-in feature to expand the timeline when you scroll it, but you can implement it by using Gantt API and Javascript.
If the date range is not predefined by the gantt.config.start_date and gantt.config.end_date parameters, you can use the gantt.render() method to repaint the chart while dragging or resizing a task near the timeline border: https://snippet.dhtmlx.com/5/9db277ac4
If the date range is predefined, you can extend it: https://snippet.dhtmlx.com/69e9538a9
If you want to expand the timeline while clicking on the scrollbar buttons, here is another example of the implementation: http://snippet.dhtmlx.com/5/d0a37d994
Thanks much for your response. It was really helpful.
One other query,
I would like to handle asynchronously each request from gantt.
My use case would be, user is making some click through’s in the gantt and currently for each click we make an update call. I would like to make these call asynchronously, in the sense I would like to consolidate all the click throughs and make a single save/update call.
Is there a way to achieve this functionality ?
Thanks for your response.
I would like to make multiple changes from front-end to server via a single update call.
Is that possible in Gantt to capture multiple changes from UI and send them consolidated as a single request to server?
If you want to send it via AJAX, you also need to implement a custom solution. Here is an example of how it might be implemented: https://snippet.dhtmlx.com/5/d0b0020f8
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan