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

Unable to render the child nodes dynamically onClick of Expand.

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
sarath
Top achievements
Rank 1
sarath asked on 29 Oct 2014, 06:03 AM

Please find the attached file or check into the link: http://dojo.telerik.com/emAq/2

    As per the code, My problem is that, I am unable to modify the child nodes onClick of expand.  It is able to modify the child nodes for the first time but, once I re-expand the same node the styles are not applying properly.

   My usecase: I should be able to get the child nodes from the server and render dynamically into the respective parents. My calls to the server are POST requests where the request data will be modified according to the currently selected parentNode.


If there is any sample code please help me to make my usecase work with Kendo-Tree widget.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 29 Oct 2014, 12:07 PM
Hello Sarath,

If you want to dynamically change the node items, a better way to achieve this is through a custom transport, as it will hold all information about the data. Alternatively, you can use a timeout to achieve this, as the angular scope update is executed after the event handler animates the element (and sets styles).

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
sarath
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or