Hi,
I am using WebDataTree control and adding nodes to the tree instead of Xml DataBind. Also implemented Load on Demand concept using
the below logic.
this.TreeControl.NodeBound += new DataTreeNodeEventHandler(TreeControl_NodeBound); this.TreeControl.NodePopulate += new DataTreeNodeEventHandler(TreeControl_NodePopulate);
Data loads fine for first time and when I try to expand nodes, it showing "Server does not respond" on hosting machine. If I refresh the page, expanding nodes are just working fine.
In debug mode, it showing "async failed"
Server Tag:
<ig:WebDataTree ID="TreeControl" runat="server" Visible="true" Height="100%" ForeColor="Black" EnableConnectorLines="true" EnableAjaxViewState="true"> <ClientEvents NodeClick="nodeClick" NodeExpanding="nodeExpand" NodeCollapsing="nodeCollapse" Initialize="InitializeHandler" /> </ig:WebDataTree>
Thanks,
Karthik Thangavel.
Hello Karthik,
If I understand you correctly you have some type of data source and you are adding nodes to the WebDataTree by yourself. Additionally you need to implement load on demand for the child nodes. If this is what you need please follow the next link to a WebDataTree samples where we show how you can “Manual Load On Demand” nodes to WebDataTree.
Please let me know if this solves your issue, or if you need any further assistance on this matter.
public override void ProcessRequest(System.Web.HttpContext ) { //Check for authentication base.ProcessRequest(context); }
5. First level nodes are loaded and when expanding a child node on a tree, base.ProcessRequest(context); runs, it throwing the error (Async request failed).
6. This error not occured with UltraWebTree. See the below for design source.
UltraWebTree:
<ignav:ultrawebtree id="TreeControl" runat="server" webtreetarget="ClassicTree" loadondemand="manualsmartcallbacks" compactrendering="False" enableviewstate="true" singlebranchexpand="false" > <clientsideevents nodeclick="nodeClick" nodeexpand="nodeExpand" nodecollapse="nodeCollapse" dragstart="dragStart" drop="drop" dragover="dragOver" /> </ignav:ultrawebtree>
WebDataTree:
<ig:WebDataTree ID="TreeControl" runat="server" InitialExpandDepth="0" EnableExpandOnClick="true" InitialDataBindDepth="0" EnableAjax="true" SingleBranchExpandLevel="0" SelectionType="Single" Visible="true" Height="100%" ForeColor="Black" EnableConnectorLines="true" OnNodePopulate="TreeControl_NodePopulate" OnNodeBound="TreeControl_NodeBound" > <AutoPostBackFlags SelectionChanged="Async" /> <ClientEvents NodeClick="nodeClick" NodeExpanding="nodeExpand" NodeCollapsing="nodeCollapse" Initialize="InitializeHandler" /> </ig:WebDataTree>
Thanks.