This is a migrated thread and some comments may be shown as answers.

Rename new node and post it to server

0 Answers 27 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 10 Feb 2010, 10:40 PM
Hi all, I have following scenario:

I creted new node in radTreeView (by javasrcipt), then i allow user to rename it by startEdit method and after that i have set OnNodeEdit server event. 

But it not fired. Postback is posted, by not fired OnNodeEdit.

This is my client-side snippet:

                    tree.trackChanges(); 
 
                    var node = new Telerik.Web.UI.RadTreeNode(); 
 
                    if (args.get_dropPosition() == "over") destNode.get_nodes().add(node); 
                    if (args.get_dropPosition() == "above") insertBefore(destNode, node); 
                    if (args.get_dropPosition() == "below") insertAfter(destNode, node); 
                    node.set_text("New category"); 
                    var attributes = node.get_attributes(); 
                    attributes.setAttribute('CreateNewNode'true); 
                     
                    args.set_cancel(true); 
                    tree.commitChanges(); 
                    node.startEdit(); 

I'm doing that onDroping. 

Any ideas? Many Thanks!!!





No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Jan
Top achievements
Rank 1
Share this question
or