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

Does selected node have children?

1 Answer 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 14 Aug 2008, 10:12 PM
I need to determine at run-time if a node that is selected has any children. Is there an easy way to achieve this using the RadTreeView?

Thanks!

Paul

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 15 Aug 2008, 07:03 AM
Hi Paul,

Basically you should check the Node.Nodes.Count property on the server and node.get_nodes().get_count() on the client. Please, check the Using the client-side API example of RadTreeView for some additional information.

Let me know if I am missing something.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Paul
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or