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

Gantt Databound issue and timeline headers style

2 Answers 91 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Hajrija
Top achievements
Rank 1
Hajrija asked on 03 Apr 2015, 08:33 AM
Hi, 

I am using Gantt and I have few issues.

1. When Gantt is first loaded it doesn't display task timeline. I have to select some other view first in order for it to appear.
2. If I use databoud event to set view ( var gantt = $("#Gantt").data("kendoGantt");
        gantt.view("week"); )  I have error Uncaught RangeError: Maximum call stack size exceeded. if i comment this all code in databoud  function executes fine


Is there any way to hide weeks if view is set to month view? Our client wants just to track by months since all projects are monthly.
Also can we hide days or hours if week and day view is selected.

Thank You

2 Answers, 1 is accepted

Sort by
0
Hajrija
Top achievements
Rank 1
answered on 04 Apr 2015, 05:34 AM

i just want to follow up on previous question. i realized that setting wiev is reading data again and that why i get stack error. still I have problem with not displaying chart when gantt is loaded. do you have any solution. 

also are dependencies required? i am using latest version but dependencies are required. 

0
Bozhidar
Telerik team
answered on 06 Apr 2015, 06:35 AM
Hi,

I've attached a sample project where the Gantt widget is displayed. Run it on your end and see if it's working or if the issue is still reproduced.

Also in the project I selected YearView, but hidden the top row, so that only months are shown, as per your requirement. Please note that I chose to hide the top row instead of the bottom one, since the columns in the timeline are aligned to the bottom row of headers, and hiding the bottom one will produce misaligned results.

You just have to put in the Kendo.Mvc dll in the project in order to test it.

Regards,
Bozhidar
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Gantt
Asked by
Hajrija
Top achievements
Rank 1
Answers by
Hajrija
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or