Hello,
We are getting the following error when we are grouping by one column using UltraWebGrid v 11.2 framework 4.0
“Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.”
We set the maxJsonLength property to a large value in the Web.config file and we get the same error.
We have just 295 records. We are using Virtual Scrolling.
.DisplayLayout.LoadOnDemand = Infragistics.WebUI.UltraWebGrid.LoadOnDemand.Xml
.DisplayLayout.XmlLoadOnDemandType = Infragistics.WebUI.UltraWebGrid.XmlLoadOnDemandType.Virtual
When we group by a column we change these properties (I also tried to comment this two lines and I got the same error):
.DisplayLayout.LoadOnDemand = Infragistics.WebUI.UltraWebGrid.LoadOnDemand.NotSet
.DisplayLayout.XmlLoadOnDemandType = Infragistics.WebUI.UltraWebGrid.XmlLoadOnDemandType.Synchronous
How can we solve this problem?
Thanks in advance.
Hello alfmag,
Please feel free to contact me if you are still experiencing any issues.
Thank you for posting in the community.
I have tested this scenario, however so far I am unable to replicate the matter using 11.1.20111.2020. Please note that UltraWebGrid has been retired since 11.2. Are you using the versionless assemblies provided for that volume? A small isolated sample would be greatly appreciated and will allow me to research this in detail.
I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at: http://samples.infragistics.com/aspnet/
Feel free to contact me with any questions or updates.