Hello,
When using the whdg i get the next error when having it filled with much data. Can you help me fix the problem?
------------------------------------------------------------------------------
Async request failed [InvalidOperationException]: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output) at Infragistics.Web.UI.Framework.CallbackObject.GetResponse(String viewState, String eventValidation, Object[] additionalScripts) at Infragistics.Web.UI.Framework.RunBot.RenderPageCallBack(HtmlTextWriter writer, Control control) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)[HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.action_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\daedc96b\c3d05c5f\App_Web_c0vxitgo.3.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
------------------------------------------------------------------
I have just upgraded to the newest service release, so that won't be the problem. I also put an update in my web.config telling JSOn to have a length of 40000000, so that should not be the problem too. And the last thing i tried was add paging to the whdg, but that did not help either.
Any ideas would be very welcome.
this is my grid:
<ig:WebHierarchicalDataGrid ID="whdgAction" runat="server" AutoGenerateBands="False" AutoGenerateColumns="False" DataKeyFields="AccommodationId" DataMember="Accommodations" Height="600px" Key="RootBand" oninit="whdgAction_InitializeGrid" Width="98%" CssClass="margin1pct"> <ClientEvents RowExpanded="rowExpanded" RowCollapsed="rowCollapsed"/> <Bands> <ig:Band AutoGenerateColumns="False" DataKeyFields="AccommodationId, PriceId" DataMember="Packages" Key="ChildBand"> <Columns> <ig:TemplateDataField Key="checkField" Width="50px"> <ItemTemplate> <div style="text-align: center;"> <input type="checkbox" id="cCK<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "AccommodationId") %>" <%# (bool)DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "Selected") == true ? "checked=\"checked\"" : "" %> onclick="selectChild(this)"/> </div> </ItemTemplate> </ig:TemplateDataField> </Columns> </ig:Band> </Bands> <Columns> <ig:TemplateDataField Key="checkField" Width="50px"> <%--<HeaderTemplate> <div style="text-align: center;"> <input type="checkbox" id="ckHeader" onclick="selectHeader()" /> </div> </HeaderTemplate>--%> <ItemTemplate> <div style="text-align: center;"> <input type="checkbox" id="pCK<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "AccommodationId")%>" onclick="selectParent(this)" disabled="disabled"/> </div> </ItemTemplate> </ig:TemplateDataField> </Columns> <Behaviors> <ig:Filtering EnableInheritance="True"> </ig:Filtering> <ig:EditingCore EnableInheritance="True"> <Behaviors> <ig:CellEditing EnableInheritance="True"> </ig:CellEditing> </Behaviors> </ig:EditingCore> <ig:Paging Enabled="true" PageSize="20"> </ig:Paging> </Behaviors> </ig:WebHierarchicalDataGrid>
---------------------------------
regards,
René
Hi,
I am also getting the same error when i am grouping by one column for my UltraWebGrid 2010 vol 3.
I have 4000+ rows in my grid. I have disabled paging.
LoadOnDemand="Xml"
XmlLoadOnDemandType="Accumulative"
Please let me know if i am making any mistake.
Thanks in advance.,
Hello René,
Have you tried to use the Load on demand option of the WHDG?
Manual :
https://ko.infragistics.com/samples/aspnet/hierarchical-data-grid/manual-load-on-demand
Automatic:
https://ko.infragistics.com/samples/aspnet/hierarchical-data-grid/automatic-load-on-demand
I noticed that you are using paging which should lighten the loading.
What is the InitialExpandDepth and InitialDataBindDepth?
I have found two forum posts of David regarding this issue.
Please refer and let me know if his suggestions help you:
http://forums.infragistics.com/forums/p/51908/270771.aspx
http://community.infragistics.com/forums/t/45223.aspx
Hope hearing from you.