Reset Drill Down / Open to 2nd level

3 posts, 0 answers
  1. Kevin Dugan Jr
    Kevin Dugan Jr avatar
    5 posts
    Member since:
    Aug 2014

    Posted 02 Feb Link to this post

    Question 1: How can we reset the drill down level from the code-behind? 

    Question 2: How can always open to 2nd level (or perhaps 3rd level) from the code-behind? 

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

    Posted 03 Feb in reply to Kevin Dugan Jr Link to this post

    Question 2: Answer.

             protected void RadOrgChart1_NodeDataBound(object sender, Telerik.Web.UI.OrgChartNodeDataBoundEventArguments e)
                if (Helper.Integer_Null(e.Node.Level) > 1)
                    e.Node.Collapsed = true;



    The Helper class you see ensures I do not have any NULL's, but the logic is the same. 

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Plamen
    Plamen avatar
    2729 posts

    Posted 04 Feb Link to this post


    Thank you for getting back to us.

    1) Unfortunately in the current version there is not there is no direct server API to set the drillDown node but you can set it from the server to a hidden field value and perform it from there on load as for example it is done in the the code below:
    Sys.Application.add_load(function () {
                              var radOrgChart = $find("<%=RadOrgChart1.ClientID%>");
                              var $ = $telerik.$;
                              var fieldValue = $("#HiddenField1").val();
                              if (fieldValue) {                               

    Hope this will help you solve the issue. If you have further questions please don't hesitate to contact us again.

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