Expand Collapse not working

3 posts, 0 answers
  1. Vaishali
    Vaishali avatar
    32 posts
    Member since:
    Jun 2019

    Posted 15 Jul 2019 Link to this post

    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. Martin
    Admin
    Martin avatar
    317 posts

    Posted 17 Jul 2019 Link to this post

    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.
  3. Vaishali
    Vaishali avatar
    32 posts
    Member since:
    Jun 2019

    Posted 17 Jul 2019 in reply to Martin Link to this post

    Thanks Martin!
Back to Top