Welcome Guest Search | Active Topics | Sign In | Register

Unable to selected ParentNode in TreeView Options
AlexisVZ
Posted: Monday, September 3, 2007 8:41:07 AM
Rank: Advanced Member
Groups: Member

Joined: 8/27/2007
Posts: 44
Hello,

(the following problem is quite urgent as I need to present proof of concept application tomorrow).

I am unable to select the parentnode of the currently selected node using the following code:

"Me.TreeView1.SelectedNode.ParentNode.Selected = True".

I also tried variations using Me.TreeView.findItem, but this does not work either.

Selecting a child node works fine, as wel as changing other attributes of the parentnode (like changing the text).

The code is called by an event fired by a gridview in a callbackpanel, while the treeview is in another panel. The gridview is configured as trigger for its callbackpanel and both callbackpanels are in the same group. Again, changing other properties of the parentnode or selecting chilnodes works fine.

Any ideas on how I can correct this ?

Best Regards,
Alexis
eo_support
Posted: Monday, September 3, 2007 8:50:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please try the following:

Code: Visual Basic.NET
Dim node as EO.Web.TreeNode

node = Me.TreeView1.SelectedNode
node.Selected = False
node.ParentNode.Selected = True


That should work.

Thanks
AlexisVZ
Posted: Monday, September 3, 2007 11:14:25 AM
Rank: Advanced Member
Groups: Member

Joined: 8/27/2007
Posts: 44
Yes, it works now, thanks for the excellent and indeed very fast support :-)


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.