Previous state child nodes

2 posts, 0 answers
  1. Wouter
    Wouter avatar
    7 posts
    Member since:
    Apr 2011

    Posted 25 May 2012 Link to this post

    Hi,

    When expanding a tree using for example two level:
    - treenode 1
      - treenode 1_1
        - treenode 1_1_1
      - treenode 1_2

    When I collapse treenode 1 en expand again treenode 1, all childnodes will be opened exactly how they are opened. Is it possible to only open the first level of childnodes.
    - treenode 1
      - treenode 1_1
      - treenode 1_2 

    Thanks for all reply.

    Wouter
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 May 2012 Link to this post

    Hi Wouter,

    Try the following code snippet on onnodeexpand.

    C#:
    protected void RadTreeView1_NodeExpand(object sender, RadTreeNodeEventArgs e)
        {
            e.Node.CollapseChildNodes();
        }

    Hope this helps.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top