Hi
We are testing the load-on-demand feature in WebDataTree (v10.3 for asp.net framework 3.5).At first we test this feature on a simple Web-form application example (created with VS2010 - Framework 3.5) and it works well.
But, when we added the same changes to our real application ( Note . It was converted from VS2003 to VS2010) we have this problem:
When the webDatatree is loaded , the first level is bound to the tree , but we have a javascript alert “Deserialization failure: Invalid response” each time we try to expand a node in the first level (I mean: try to bind on demand the other levels) and the message that we have defined "Loading ... Please wait! "with DataLoadingMessage attribute remains frozen.Anyone have an idea of the source of this problem ?
Thanks
Here is the definition of our WebDataTree:
<body style="margin: 0px;" oncontextmenu="return false" onresize="setTimeout('SaveCurrentFrameSizes()',100);"> <form id="Form1" runat="server"> <ig:WebScriptManager ID="WebScriptManager1" runat="server"> </ig:WebScriptManager> <table id="Table1" cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td id="td" align="right" width="100%" style="height: 18px; background-image: url(APP_THEMES/<%=Page.Theme%>/IMAGES/searchbg.JPG);"> <input type="image" id="Pin" onclick="CollapseShowPane('<%=Page.Theme%>');" src="APP_THEMES/<%=Page.Theme%>/Images/ig_menuBlueLeft.GIF" style="vertical-align: middle;" /> </td> </tr> </table> <table id="Table2" cellspacing="0" cellpadding="0" width="100%"> <tr> <td valign="top" id="treetd"> <ig:WebDataTree ID="WebTree" runat="server" Width="100%" Height="100%" DataSourceID="XmlDataSourceForTree" InitialExpandDepth="1" InitialDataBindDepth="1" DataLoadingMessage="Loading...Please wait!" onnodeclick="WebTree_NodeClick"> <AutoPostBackFlags NodeClick="On" /> <DataBindings> <ig:DataTreeNodeBinding DataMember="Folder" KeyField="id" TextField="name" ValueField="FolderTypeId" /> </DataBindings> </ig:WebDataTree> <asp:XmlDataSource ID="XmlDataSourceForTree" runat="server"></asp:XmlDataSource> </td> </tr> <tr><td> <asp:HiddenField id="lastSize" runat="server" /> </td></tr> </table> </form></body>
Hi,
this is happening because you are looding too much data into the tree control. We have an optimization for the post back, that caches some data on the server. You will not see this error if you set this.WebDataTree1.OptimizeCollectionsState = false in page load. But this will decrease the postback speed in IE specifically. Also if you are using load on demand I think turning off this optimization will not hurt your performance. Give it a try and let me know.
I tried your suggestion and set the webdatatree collection state property to false. Still having the same issue. FYI, recently we upgraded to Infragistics4.Web.v11.1, and windows 7 with IE9, before the upgrade it was working fine.
this.WDTRoleManager.OptimizeCollectionsState = false;