What I'm trying to implement now is the ability for someone to search for a particular employee and then jump to that location in the OrgChart. Is that even possible? If so, it certainly isn't straightforward.
Thanks,
Kyle
16 Answers, 1 is accepted

I based the approach on the Org Chart with BreadCrumbs sample. Using the new RadSearchBox control, I bind it to the list of employees and then when one is searched I find the employee object in the datasource and build out the Hierarchy on what I've assumed is the same sorting for each parent node. From there I write the hierarchyIndex out to a JavaScript variable and then when the PageLoad() code from the sample is hit if that value exists it calls the orgChart.drillDownOnNode() client side method. I had to clean up a couple of Server side methods to deal with nulls (Drill Down event e.SourceNode for one) to get this fully functional.
It seems to work so far, but feels very fragile (i.e. if the sorting of the data changes, then the hierarchy index will be wrong).
Thanks,
Kyle
You could use the client side method drillDownOnNode and pass the hierarchical index(e.g "0:0:1") of the node that you want to be drilled. The drill down feature is useful in case that you want to observe a particular branch of the hierarchy. For the Q2.2013 we are going to do our best to introduce a DataBinding Provider which will give us the ability to filter the datasource to which the control is bound.
Regarding to your last concern, you are correct if the data base is changed the hierarchical index will be changed too.
Regards,
Peter Filipov
the Telerik team

Thank you for the response. It seems to be working okay for now and I'll evaluate the new DataBinding Provider when it is released. Question about that provider, once the data source is filter will it still be possible to build breadcrumb with the hierarchy back to the original root node? Or will filtering the data source change the root node to the current filtered node?
Thanks,
Kyle
I pretty sure that it will be possible to integrate the BreadCrumb example with the described behavior. We are going to do our best to create a demo for that case.
Regards,
Peter Filipov
the Telerik team

I'm trying to drill down to a specific node based on a choice made outside of the OrgChart and I'd like to use the node id but I don't think that's the same as the "hierarchical index". Is this possible? If not how can I get the hierarchical index using the node id?
I am afraid that the documentation about the client side API is incomplete. We are going to do our best and update it as soon as we could. Unfortunately, now it is not possible to achieve such scenario.
Kind regards,
Peter Filipov
the Telerik team

"For the Q2.2013 we are going to do our best to introduce a DataBinding Provider which will give us the ability to filter the datasource to which the control is bound."
Is this functionality ready to use? How does it work? Could you share any documentation link or anything else?
I want to search item in my datasource (not telerik datasource), then detect hierarchical id for found item and drill down with js function.
Thank you.
We didn't make it for the mentioned release. That functionality is in our TODO list and as soon as we ready it will be documented and released.
Regards,
Peter Filipov
Telerik

Now, it is possible only client-side search. Please review the attachment. Type in the input e.g. "Sara Darkman" or "Peter" then click the search button. Regarding to the server-side search it is not possible for now.
Regards,
Peter Filipov
Telerik

"For the Q2.2013 we are going to do our best to introduce a DataBinding Provider which will give us the ability to filter the datasource to which the control is bound."
Telerik is going on 1 1/2 years now, and this has yet to materialize. Without it, there is no safe way to implement search (your client examples don't cut it for a mid-to-large sized organization.
I understand your frustration and we will do our best to deliver a sample which could help you in such case.
For the upcoming release Q3 Beta(this week) we will introduce a sample where you could search into a big organizational chart. In the described demo you could enable the LoadOnDemand feature and collapse all nodes. This will help you not to load the whole structure and search for a particular employee.
Regards,
Peter Filipov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Could you please check the following demo, it is been released many year ago? Does it fit for your scenario?
Regards,
Peter Filipov
Telerik


I"m not having any joy with this. My data is coming from a sql table so I commented some code out in the vb page load event:
Protected Sub Page_Load(sender As Object, e As EventArgs)
' CreateEmployees()
AddHandler RadOrgChart1.NodeDataBound, AddressOf RadOrgChart1_NodeDataBound
AddHandler RadOrgChart1.DrillDown, AddressOf RadOrgChart1_DrillDown
RadOrgChart1.RenderedFields.ItemFields.Add(New Telerik.Web.UI.OrgChartRenderedField() With {.DataField = "Job1"})
'RadOrgChart1.DataSource = employees
'RadOrgChart1.DataBind()
RadSearchBox1.Text = ""
'RadSearchBox1.DataSource = info
'RadSearchBox1.DataBind()
End Sub
But I'm getting an error:
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'HierarchicalIndex'.
Any thoughts?