I ran into an interesting issue this morning that I could use an opinion on.
I have the following event defined to fire OnClientNodeChecking:
function AfterClientCheck(sender, eventArgs)
{
var node = eventArgs.get_node();
var secondTreeView = $find('RadTreeView4');
secondTreeView.get_nodes().add(node);
}
The code is supposed to make a copy of a node from one treeview and add it to a second treeview.
Only it doesn't just Add it, it actually MOVES it from one treeview to the other.
Is this by design?
Anyway, the solution I found to work around this issue is to create a new node:
var node3 = new Telerik.Web.UI.RadTreeNode();
node3.set_text(node.get_text());
secondTreeView.get_nodes().add(node3);
Thanks, Mitch
I have the following event defined to fire OnClientNodeChecking:
function AfterClientCheck(sender, eventArgs)
{
var node = eventArgs.get_node();
var secondTreeView = $find('RadTreeView4');
secondTreeView.get_nodes().add(node);
}
The code is supposed to make a copy of a node from one treeview and add it to a second treeview.
Only it doesn't just Add it, it actually MOVES it from one treeview to the other.
Is this by design?
Anyway, the solution I found to work around this issue is to create a new node:
var node3 = new Telerik.Web.UI.RadTreeNode();
node3.set_text(node.get_text());
secondTreeView.get_nodes().add(node3);
Thanks, Mitch