Welcome Guest Search | Active Topics | Sign In | Register

how to make selected node to be expanded? Options
Peymaneh
Posted: Tuesday, September 18, 2007 7:27:23 AM
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,
eo_support
Posted: Tuesday, September 18, 2007 8:04:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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
Peymaneh
Posted: Tuesday, September 18, 2007 8:31:58 AM
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,

eo_support
Posted: Tuesday, September 18, 2007 8:38:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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
Peymaneh
Posted: Tuesday, September 18, 2007 10:12:33 AM
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.
eo_support
Posted: Tuesday, September 18, 2007 10:21:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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
Peymaneh
Posted: Tuesday, September 18, 2007 10:24:12 AM
Rank: Member
Groups: Member

Joined: 9/14/2007
Posts: 12
what is the best control to meet all my needs?
eo_support
Posted: Tuesday, September 18, 2007 10:49:24 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.