I'm adding a treenode like this;
I'd like to be able to initiate the editing of the newly added node in order for the user to easily change the node text; "New Node"
Is it possible, can you provide the js code?
function AddNode(parentNode) { |
var tree = $find("<%= tvCategory.ClientID %>"); |
tree.trackChanges(); |
var node = new Telerik.Web.UI.RadTreeNode(); |
node.set_text("New Node"); |
node.set_imageUrl("<%= NodeImageURL %>"); |
if (parentNode == null) { |
tree.get_nodes().add(node); |
} |
else { |
parentNode.get_nodes().add(node); |
parentNode.expand(); |
} |
tree.commitChanges(); |
node.BeginEdit(); |
} |
I'd like to be able to initiate the editing of the newly added node in order for the user to easily change the node text; "New Node"
Is it possible, can you provide the js code?