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

Find Nodes or Groups

1 Answer 118 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Hans Roelants
Top achievements
Rank 1
Hans Roelants asked on 24 Feb 2012, 07:33 PM
Hello,

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.

Regards,

Hans

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter Filipov
Telerik team
answered on 29 Feb 2012, 04:20 PM
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.
Tags
OrgChart
Asked by
Hans Roelants
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or