I want to have the horizontal scrollbar just below the last row in the Gantt. Gantt should have vertical scrollbar only if the height of the Gantt container is less than the Gantt height( which is equal to height of header + height of all the rows).
Hello Pravin,
It should work that way out of the box(except the horizontal scrollbar exactly below the last row). If the displayed date range doesn’t fit the width of the Gantt container, Gantt adds the horizontal scrollbar. If there are more tasks than the height of the Gantt container, Gantt adds the vertical scrollbar.
You can check how it works in the following snippet: https://snippet.dhtmlx.com/5/4fde31b1d
Thanks for response. The requirement is slightly different.
The horizontal scrollbar should be end of last row if rows are fitting inside the parent container.
Hello Pravin,
Gantt consists of different parts: grid, timeline, resizers, scrollbars.
The scrollbars are not part of the timeline or grid. They are completely different elements: