This is a migrated thread and some comments may be shown as answers.
Expand of node not working after disable and enable
1 Answer 28 Views
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 15 Apr 2015, 02:50 PM

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

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 17 Apr 2015, 08:30 AM

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!
 
Asked by
Kiran
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or