|
Rank: Advanced Member Groups: Member
Joined: 12/26/2008 Posts: 45
|
How i can select TreeNode from server Side?
From client side - it's .getParentItem().select(); Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, It will be MenuItem.Selected = true on the server side. You can find the full reference of the server side interface here: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.htmlThanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/26/2008 Posts: 45
|
if make MenuItem.Selected = true and no changes. TreeView in SingleSelection Mode and i not see that my item selected, and i was't handle event about ItemClicked.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Have you tried TreeView.SelectedNode = someNode?
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 12/26/2008 Posts: 45
|
TreeView.SelectedNode has no setter :)
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, We tried the following code and it worked fine:
Code: C#
//Get the second child node of the first top level node
TreeNode node = TreeView1.TopGroup.Nodes[0].ChildNodes[1];
//Select the node
node.Selected = true;
node.EnsureVisible();
Note that the code calls EnsureVisible to so that you can see the node is selected. Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/26/2008 Posts: 45
|
With node.EnsureVisible(); worked!
Thanks!Thanks!Thanks!
|
|