Hi Team,
I have the below treeview and uses 'Load On Demand' and for certian nodes it has around 5000 child nodes and are throwing the javascript error 'stop running the script'. Below are what I tried.
1. In the NodeExpand event, I changed the expand mode to 'ServerSide', it worked fine. But I need AJAX.
2. I tried setting ScriptMode="Release" but didn't work.
3. I tried PersistLoadOnDemandNodes='false' and it worked. But I want to use server side events.
Regards,
Gijo Joseph.
<telerik:RadTreeView ID="RadTreeView" runat="server" EnableDragAndDrop="true" onnodedatabound="RadTreeView_NodeDataBound"onnodeexpand="RadTreeView_NodeExpand"> </telerik:RadTreeView>
protected void RadTreeView_NodeExpand(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e) { List<Node> ltChilNodes = GetListofChildNodes(); foreach (Node node in ltChilNodes) { RadTreeNode onDemandNode = new RadTreeNode(node.Name); onDemandNode.Attributes.Add("Attr1", node.Attr1); onDemandNode.Attributes.Add("Attr2", node.Attr2); onDemandNode.Attributes.Add("Attr3", node.Attr3); onDemandNode.Attributes.Add("Attr4", node.Attr4); onDemandNode.Attributes.Add("Attr5", node.Attr5); onDemandNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack; e.Node.Nodes.Add(onDemandNode); } }