RadTreeView.ExpandAllNodes() does't work

2 posts, 0 answers
  1. Catalina
    Catalina avatar
    9 posts
    Member since:
    Apr 2012

    Posted 22 Jun 2012 Link to this post

            public ICollection<Employe> Data
            {
                set
                {
                    this.RadTreeView.DataSource = value;
                    this.RadTreeView.DataBind();
                    this.RadTreeView.ExpandAllNodes();
    }
    }

    Tree view nodes are not expanded. Is there another way to do this?
  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 25 Jun 2012 Link to this post

    Hi Catalina,

     
    You can set the Expanded="True" property in the DataBindings of RadTreeview as it is done in the Programmatic Data Binding:

    <DataBindings>
                       <telerik:RadTreeNodeBinding Expanded="True" />
                   </DataBindings>

    Hope this will be helpful.

    Regards,
    Plamen Zdravkov
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top