Jump To Specific Org Chart Node in a Drill Down OrgChart

16 posts, 1 answers
  1. Kyle T.
    Kyle T. avatar
    16 posts
    Member since:
    Dec 2011

    Posted 20 Feb 2013 Link to this post

    I am using the OrgChart control to display 1100 employees.  Due to the size and structure of the company I have limited it to displaying 2 levels of employees and enabled drill down.

    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
  2. Kyle T.
    Kyle T. avatar
    16 posts
    Member since:
    Dec 2011

    Posted 21 Feb 2013 Link to this post

    I was able to get a version of this working but it's hacktastic that's for sure.  I'd still to hear an official answer.

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 25 Feb 2013 Link to this post

    Hi 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
    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.
  5. Kyle T.
    Kyle T. avatar
    16 posts
    Member since:
    Dec 2011

    Posted 25 Feb 2013 Link to this post

    Peter

    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
  6. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 27 Feb 2013 Link to this post

    Hello 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
    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.
  7. Chad
    Chad avatar
    19 posts
    Member since:
    Aug 2008

    Posted 13 May 2013 Link to this post

    Is that "drillDownOnNode" method documented anywhere? Or just client side methods for the OrgChart in general? I couldn't find any information on the client side API for OrgChart.

    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?
  8. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 16 May 2013 Link to this post

    Hi Chad,

    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
    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.
  9. Anton
    Anton avatar
    1 posts
    Member since:
    Feb 2013

    Posted 21 Aug 2013 Link to this post

    Hi, you said:
    "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.
  10. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 23 Aug 2013 Link to this post

    Hi Anton,

    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
    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 the blog feed now.
  11. Basavatharakam
    Basavatharakam avatar
    3 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2013 Link to this post

    Could you please shre the code you have implemented to chieve search functionlity?
  12. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 08 Oct 2013 Link to this post

    Hello Basavatharakam,

    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
    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 the blog feed now.
  13. Andrew
    Andrew avatar
    4 posts
    Member since:
    May 2011

    Posted 29 Sep 2014 Link to this post

    When will the following be implemented?

    "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. 
  14. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 30 Sep 2014 Link to this post

    Hello Cary,

    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.

     
  15. Kevin Dugan Jr
    Kevin Dugan Jr avatar
    5 posts
    Member since:
    Aug 2014

    Posted 03 Feb in reply to Kyle T. Link to this post

    We're trying to accomplish the same exact thing as Kyle.  We have just over 1,000 employees and are limiting the expand level to 2 and want to be able to jump to any employee. Almost three years later and still no documentation to be found on how to accomplish a task that seems necessary.
  16. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 08 Feb Link to this post

    Hello Kevin,

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

    Regards,
    Peter Filipov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  17. Kevin Dugan Jr
    Kevin Dugan Jr avatar
    5 posts
    Member since:
    Aug 2014

    Posted 08 Feb in reply to Peter Filipov Link to this post

    That is what we were looking for, yes. Not sure how we (or myself) missed that demo. We ended up going a different route instead. This will come in handy for others though and perhaps us in the future.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017