|
Rank: Member Groups: Member
Joined: 9/14/2007 Posts: 12
|
Hi, I am using tree view and I want to have the selected node to be open. For example if I have 3 nodes and each of them has some sub nodes, if the first node’s sub node is selected, I want that node to be expanded as far as user selects another node’s sub node. But I don’t know how to manage it. Any idea for that?
thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
The TreeView automatically does that by default: when you click a node, the node becomes the selected node and it automatically expands to display all its child node. Is this what you need?
Thanks
|
|
Rank: Member Groups: Member
Joined: 9/14/2007 Posts: 12
|
You are right when user select a node by default that group is expanded already but actually my problem is when the user click on group node so although the leave node is selected, the group will be collapsed and that’s the thing that I have to avoid.
Thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Peymaneh wrote:when the user click on group node so although the leave node is selected, the group will be collapsed I am not exactly sure what you mean. Can you provide details teps? Thanks
|
|
Rank: Member Groups: Member
Joined: 9/14/2007 Posts: 12
|
i I need to have a left menu with tow specific things The main menu must change image on collapse and expand ( which is working properly now) and be always expand when an item in the menu is selected. Actually it is mostly navigation menu and I don’t know how to force the menu to be expanded when an inside item is selected.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
I am assuming that you are using TreeView, not Menu. You can not force a TreeNode to be always expanded. Ultimiately the user has the control over this. The user can always click the plus/minus sign to expand/collapse the node.
Thanks
|
|
Rank: Member Groups: Member
Joined: 9/14/2007 Posts: 12
|
what is the best control to meet all my needs?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Peymaneh wrote:what is the best control to meet all my needs? I guess in a real world nobody always get "all his/her needs". :) It's not a good idea to force the TreeNode to be expanded ---- users are used to a TreeView that can be freely expanded/collapsed and they will get confused/irritated by peculiar behaviors.
|
|