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

get_allNodes() not returning collapsed nodes

2 Answers 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ted
Top achievements
Rank 1
Ted asked on 27 Aug 2012, 11:23 PM
Hi,

I am using get_allNodes() and it appears to only return root and expanded nodes (it's not returning any children of collapsed parent nodes). At least, this is the count that nodes.length is giving me. Is this expected behavior?

Thanks,
Ted

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 28 Aug 2012, 02:02 PM
Hello Ted,

I have tried to reproduce the problem you experience, but to no avail. Could you elaborate a bit more about the exact your scenario? I prepared a sample project, where you could observe the behavior of the RadTreeView control along with the usage of the get_allNodes() client-side method.
Please find the sample attached.


All the best,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ted
Top achievements
Rank 1
answered on 28 Aug 2012, 02:23 PM
Thank you for your response. Apparently this method is expected to return ALL nodes, to include children of collapsed nodes. So, that answers my question.
Tags
TreeView
Asked by
Ted
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ted
Top achievements
Rank 1
Share this question
or