This question is locked. New answers and comments are not allowed.
Hello,
I am using telerik grid for display data from sql db... When I displaying more than 3500 rows, it returns:
Everywhere on internet and Telerik Troubleshooting manual also too, wrote that reason is edit web.config. It doesn't help me... I tryed return data like this:
When I return data as ContentResult, filtering and sorting stops working.
I was trying this solution too: http://anyrest.wordpress.com/2011/09/27/large-json-result-for-teleriks-mvc-grid/ and it isn't helps me...
There is code from my Controller:
Thanks,
David
I am using telerik grid for display data from sql db... When I displaying more than 3500 rows, it returns:
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.Everywhere on internet and Telerik Troubleshooting manual also too, wrote that reason is edit web.config. It doesn't help me... I tryed return data like this:
JavaScriptSerializer serializer = new JavaScriptSerializer { MaxJsonLength = 536870912, RecursionLimit = 100 };return new ContentResult(){ Content = serializer.Serialize(data), ContentEncoding = Encoding.UTF8};When I return data as ContentResult, filtering and sorting stops working.
I was trying this solution too: http://anyrest.wordpress.com/2011/09/27/large-json-result-for-teleriks-mvc-grid/ and it isn't helps me...
There is code from my Controller:
[GridAction, POST("GridData")]public ActionResult _Index(){ var data = GetExclusionsDataCollection(); return View(new GridModel { Data = data });}Thanks,
David