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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|
Rank: Advanced Member Groups: Member
Joined: 8/27/2007 Posts: 44
|
Yes, it works now, thanks for the excellent and indeed very fast support :-)
|