This is a migrated thread and some comments may be shown as answers.
Issue faced in appending child nodes on expand event to parent node in TreeView
2 Answers 15 Views
This is a migrated thread and some comments may be shown as answers.
Niranjan
Top achievements
Rank 1
Niranjan asked on 01 Dec 2017, 09:07 AM
TreeView datasource reloads when i try to expand a node, the parent data is appended to the expanded node. Strangely however if i collapse the expanded node and expand it again the child nodes are appended. Help please

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 04 Dec 2017, 11:32 AM
Hello Niranjan,

See the following dojo example, which demonstrates how a new node can be appended to a parent node using the TreeView's expand event. A jQuery object of the expanded node is obtained through the findByUid method and a new is appended to the expanded one. 
If the provided example does not help with fixing the issue you are experiencing, could you modify it accordingly, in order for the problematic behavior to be reproduced and link it back for further review?

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Niranjan
Top achievements
Rank 1
answered on 18 Dec 2017, 04:35 AM
This works well!

Thanks
Asked by
Niranjan
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Niranjan
Top achievements
Rank 1
Share this question
or