Expand of node not working after disable and enable

2 posts, 0 answers
  1. Kiran
    Kiran 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


              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
    Kiril Nikolov avatar
    2598 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:




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


    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top