DrillDown before loading OrgChart

2 posts, 0 answers
  1. Robert
    Robert avatar
    1 posts
    Member since:
    Sep 2013

    Posted 13 Dec 2013 Link to this post

    I have created a page that displays an OrgChart and lets the user drilldown. I also let the user generate a PDF of the OrgChart. I am using a third party control to generate the PDF, and have a seperate page that I pass to the PDF generator(That page has less formatting like a printer friendly version). My problem is that although the drilldown works fine on the first page I need to be able to load the second page drilled down the same way. Is there a way to programmatically set the drilldown at load?

    Or is there a way to generate an image of the chart, and then I could use that to create the PDF?
  2. Plamen
    Plamen avatar
    2925 posts

    Posted 18 Dec 2013 Link to this post

    Hello Robert,

    By default such behavior is not supported in RadOrgChart but one way to achieve similar behavior is to override the default _executeDrillDown method. Here is a sample code that would drill to the node with hierarchical index "0:0":

    var $ = $telerik.$,
                    $T = Telerik.Web.UI;
                function pageLoad() {
                    var orgChart = $find("<%=RadOrgChart1.ClientID%>");
                    if (orgChart._drilledNodeHierarchicalIndex!="0:0") {

    Hope this will be helpful.

    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.
Back to Top