This is a migrated thread and some comments may be shown as answers.

Previous state child nodes

1 Answer 18 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Wouter
Top achievements
Rank 1
Wouter asked on 25 May 2012, 08:16 AM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 May 2012, 01:30 PM
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.
Tags
TreeView
Asked by
Wouter
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or