Find Nodes or Groups

2 posts, 1 answers
  1. Hans Roelants
    Hans Roelants avatar
    5 posts
    Member since:
    Nov 2009

    Posted 24 Feb 2012 Link to this post


    I'm building an OrgChart programatically and i want to get certain nodes. I don't find any way of doing this. The only method i found is 'GetNodeByHierarchicalIndex' but i can't get it to work. What is the int[] parameter that you need to pass.

    Are there any other methods to get nodes etc...? For now i can manage to use GetAllGroupItems and looping the items and evaluating their level. It would be nice to get all elements for a specific level.


  2. Answer
    Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 29 Feb 2012 Link to this post

    Hello Hans,

    The overload parameter of the GetNodeByHierarchicalIndex method is an array, which represents the hierarchical index of the node as sequence of numbers in the RadOrgChart hierarchy. To clarify more I will give you an example (please review the attachment).

    Regarding your second question. RadOrgChart exposes only GetNodeByHierarchicalIndex method for getting nodes. I implemented for your case a method which returns nodes by a certain criteria. We are going to add that method into RadOrgChart server's API.

    Kind regards,
    Peter Filipov
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top