Completed
Last Updated: 18 Oct 2024 08:48 by ADMIN
Eyup
Created on: 15 Jul 2024 14:39
Category: Gantt
Type: Feature Request
1
Calculate Gantt cell width dynamically to remove blank space

 

When selecting the Month View of the Gantt, unexpected blank space appears and the cell headers are not properly aligned.

To reproduce the problem, open this demo:
https://demos.telerik.com/kendo-ui/gantt/basic-usage

And Click Edit in Kendo UI Dojo:
https://dojo.telerik.com/OparoYUJ

Zoom out the browser so the Gantt has some larger Width and you will notice the blank space + misaligned headers:

The same issue can be observed in the Getting article: https://docs.telerik.com/kendo-ui/controls/gantt/get-started

1 comment
ADMIN
Peter Milchev
Posted on: 18 Oct 2024 08:48

To give more context on why this behavior is expected and how to overcome it if needed.

The Gantt renders only the range it has defined. Rendering more cells with no events to fill up the empty space would be incorrect representation. Refer to this demo where you can give a big enough range where a space would not be rendered:

The other thing is the width of the slots in the timeline section. It does not support dynamic width as it would confuse or mislead the client. The slot size can be configured per view to fill the space but when the range should not be increased:

Regards,
Peter Milchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.