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

Expand Collapse not working

2 Answers 188 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Vaishali
Top achievements
Rank 1
Vaishali asked on 16 Jul 2019, 12:40 AM

In the following example, the collapse and expand on the gantt tree list is not working: http://dojo.telerik.com/exIWoQeY

What am I missing?

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Jul 2019, 02:43 PM
Hello Vaishali,

Thank you for the provided Dojo example. The issue is related to the character casing of some of the fields. In the provided example, I changed the "orderID" and "parentID" fields to the following:
{
  id: 1,
  title: "John Doe",
  start: new Date("2014/10/10 10:10"),
  end: new Date("2014/12/10 10:10"),
  summary : true,
  expanded: true,
  orderId: 0,
  parentId: null
}

Also, if you want the node to be expanded by default, you need "expanded" instead of "expand". Here is the modified version of your Dojo.

Feel free to ask if you have further questions.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Vaishali
Top achievements
Rank 1
answered on 17 Jul 2019, 05:34 PM
Thanks Martin!
Tags
Gantt
Asked by
Vaishali
Top achievements
Rank 1
Answers by
Martin
Telerik team
Vaishali
Top achievements
Rank 1
Share this question
or