Welcome Guest Search | Active Topics | Sign In | Register

remove nodes Options
Rafo
Posted: Monday, November 12, 2007 8:58:29 AM
Rank: Member
Groups: Member

Joined: 11/9/2007
Posts: 15

Hello again, my question is how can I remove the nodes added to a subset of nodes and add new ones.
The treeview filled dynamically depending on the option selected in a drop-down list box

Another question would be how to get from Treeview control javascript?
I did as follows but do not get:
Var result = document.getElementById ( 'TreeView1'). Id

thanks for help me!!!
eo_support
Posted: Monday, November 12, 2007 9:34:46 AM
Rank: Administration
Groups: Administration

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

To remove a TreeNode you would call one of the method on the TreeNodeCollection object:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.TreeLookNodeCollectionMembers.html

In order to get the TreeView control from the client, you would need to call eo_GetObject.

var treeView = eo_GetObject("TreeView1");

The result value is a client side TreeView object. You would need to go over "Client API Reference" section in the help file to find out what methods are available on that object.

Thanks


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.