We have users, particularly IE 8 users, having issues where they get the error :
Stop Running this script?
A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive.
I have been trying to optimize where we clear and add nodes to the tree and wanted some advice if possible. We have an older version of Telerik so we don't have the new bulk load option where I could pass in an array.
Currently to clear nodes I am doing :
var nodes = tree.get_allNodes();
for (var i=0; i < nodes.length; i++) {
if (nodes[i].get_nodes() != null) {
nodes[i].get_nodes().clear()
}
}
For adding nodes I am using
var tree = $find("<%= control.ClientID %>");
var Node = tree.findNodeByText('NodeText');
var newNode = new Telerik.Web.UI.RadTreeNode();
newNode.set_text('');
newNode.set_value('');
newNode.check();
Node .get_nodes().add(newNode);
Once we get start adding close to a hundred nodes per each parent node we get this error. Any help / advice is greatly appreciated. IE9 users do not see this issue.
Stop Running this script?
A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive.
I have been trying to optimize where we clear and add nodes to the tree and wanted some advice if possible. We have an older version of Telerik so we don't have the new bulk load option where I could pass in an array.
Currently to clear nodes I am doing :
var nodes = tree.get_allNodes();
for (var i=0; i < nodes.length; i++) {
if (nodes[i].get_nodes() != null) {
nodes[i].get_nodes().clear()
}
}
For adding nodes I am using
var tree = $find("<%= control.ClientID %>");
var Node = tree.findNodeByText('NodeText');
var newNode = new Telerik.Web.UI.RadTreeNode();
newNode.set_text('');
newNode.set_value('');
newNode.check();
Node .get_nodes().add(newNode);
Once we get start adding close to a hundred nodes per each parent node we get this error. Any help / advice is greatly appreciated. IE9 users do not see this issue.