Hi,
I'm not able to start_edit() a new node at the 2nd Level client-side if the parent node does not have any child previously and this is the only child.
Below is the code I've written to add a new node.
function AddNode(parentNode)
{
var tree = parentNode.get_treeView();
tree.trackChanges();
var node = new Telerik.Web.UI.RadTreeNode();
node.set_text("New Node");
node.set_value("New Node");
parentNode.get_nodes().add(node);
node.select();
tree.add_nodeEdited(NodeAdded);
tree.commitChanges();
node.startEdit();
}
at the node.startEdit() statement it throws an error as: "htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
Please note that the ExpandMode of the Nodes are "WebService"
-Himanshu
I'm not able to start_edit() a new node at the 2nd Level client-side if the parent node does not have any child previously and this is the only child.
Below is the code I've written to add a new node.
function AddNode(parentNode)
{
var tree = parentNode.get_treeView();
tree.trackChanges();
var node = new Telerik.Web.UI.RadTreeNode();
node.set_text("New Node");
node.set_value("New Node");
parentNode.get_nodes().add(node);
node.select();
tree.add_nodeEdited(NodeAdded);
tree.commitChanges();
node.startEdit();
}
at the node.startEdit() statement it throws an error as: "htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
Please note that the ExpandMode of the Nodes are "WebService"
-Himanshu