Expand of node not working after disable and enable

2 posts, 0 answers
  1. Sonu
    Sonu avatar
    1 posts
    Member since:
    Dec 2014

    Posted 15 Apr 2015 Link to this post

    I got a requirement to disable the nodes in the treeview and then based on some inputs i need to enable specific nodes.

    I am able to use enable() function and do this.

    But after this the enabled elements need to be expanded; which is not working.

    You can try this Code

    1. Expand all the nodes

    2. Type 'one' in the text field and click the button

    Expected 

              one should be enabled and expanded

              two should be disabled

     But one is not getting expanded.

    Expecting the earliest response. 

    Thank you

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 17 Apr 2015 Link to this post

    Hello Sonu,

     

    The problem is caused by the overlapping animations, of the collapsing and expanding node, this is why you will need to use setTimeout() in order to chain the animations like this:

     

    http://dojo.telerik.com/APiHo/2

     

    On a side note - using id= "nodeName", was causing an error in the jQuery file, so I changed the naming a bit.

     

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top