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
|
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!
|