Use of undocumented function

2 posts, 0 answers
  1. DuelingCats
    DuelingCats avatar
    53 posts
    Member since:
    Jul 2012

    Posted 20 Apr 2015 Link to this post

    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?

  2. Plamen
    Plamen avatar
    2816 posts

    Posted 21 Apr 2015 Link to this post


    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.


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

Back to Top