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

Use of undocumented function

1 Answer 27 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
DuelingCats
Top achievements
Rank 2
DuelingCats asked on 20 Apr 2015, 09:10 PM

I see that the dropdown tree has a get_embeddedTree() function that returns a RadTreeView. I wanted to get all nodes in the tree and test if they had any children.

 So I can do embeddedTree.get_allNodes(); and iterate through that array. Here comes the part I am asking about. In chrome console, I see there is a _hasChildren() function for a node. I don't see this documented anywhere on the Telerik site. Why is this function undocumented? Is it safe to use?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 21 Apr 2015, 05:44 AM
Hello,

The functions that start with "_" are private and are basically not recommended to use in production. Instead we recommend using get_nodes().get_count() and check if it is greater than zero.

Regards,
Plamen
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
DropDownTree
Asked by
DuelingCats
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or