Welcome Guest Search | Active Topics | Sign In | Register

Managing Treeview content client side Options
Nick
Posted: Monday, April 16, 2012 6:57:32 AM
Rank: Newbie
Groups: Member

Joined: 4/16/2012
Posts: 1
Hi Guys

I am currently looking at web treeview components, and have a few questions about the available functionality in yours:

Is it possible to add nodes into the tree view using client side code? This may both be new leaf nodes, or inserting nodes within an exiting branch (i.e. Add Node, then move child nodes onto this new node)?

If this is possible, does the control automatically send these changes back to the server when posted back, or is this to be managed via client code?

Looking forward to your response.
Regards
Nick
eo_support
Posted: Monday, April 16, 2012 9:59:44 AM
Rank: Administration
Groups: Administration

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

Thanks for posting in the forum. Unfortunately no, I do not believe you can directly add tree node into our TreeView through client code. The closest you can do is to call a TreeNode's "populateOnDemand" method, which will call back to the server where you would supply a list of child nodes. You can do this repeatly to "grow" the TreeView as much as you want and all dynamically added tree node will be saved when the page posts back. The limitation of this method is once a node has been "populated", you can not populate it again, thus it is not possible for you to add A, B, C to parent node X first, then add D to the same node through a separate call.

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.