This is a migrated thread and some comments may be shown as answers.

The automatically calculated width of Gantt is incorrect

1 Answer 67 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
維国
Top achievements
Rank 1
Veteran
維国 asked on 04 Aug 2020, 07:09 AM

when splitter moved to the right, Gantt's header's width was expanded,but  The  Width of Gantt's timeLine was not expanded.

I think your Gantt's timeLine's width is not Automatic calculated.

How can I solve this situation?

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 06 Aug 2020, 07:11 AM

Hello,

Since in this scenario the pane acts as a container for the Gantt, it might need to be resized programmatically. Try attaching a "resize" event handler to the Splitter and call the Gantt's resize method in the handler:

$("#splitter").kendoSplitter({
  panes: [ { collapsible: true }, {} ],
  resize: function(e) {
    var gantt = $("#gantt").data("kendoGantt");
    gantt.resize();
  }
});

Give this a try and let us know the results.

On a side note, I see you have created a duplicate thread: id 1479041. When you need help with a case, please submit a single one (support ticket or forum thread) per issue.

Regards,
Ivan Danchev
Progress Telerik

Tags
Gantt
Asked by
維国
Top achievements
Rank 1
Veteran
Answers by
Ivan Danchev
Telerik team
Share this question
or