Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
posted

Hi

I am using WebDataGrid2.0 with VS2008.

WebDataGrid2.0 bind with dataset with more than 1900 hundred rows.

when i am doing filter or paging on WebDataGrid2.0.i am getting below error.

Error:-->"Error during serialization or deserialization using the JSON JavaScriptSerializer.

              The length of the string exceeds the value set on the maxJsonLength property."

Note:-->I am getting above error only when WebDataGrid2.0 bind with dataset with more than 1800 rows.

Please help me it's very urgent.

Thanks

Asif

Parents
  • 33839
    Suggested Answer
    posted

    Hi Asif,

    When the data grid does an Ajax request, there is a cap to the response that can be sent back.  With that many rows in view at time, it is too much to transfer.  This is listed in the known issues.  There are a couple of options.  You could turn on virtual scrolling to only have some of the rows in view at a time.  You could also turn EnableAjax off.   With the second option, you could wrap the grid with an Update Panel so the whole page does not post back.

    regards,

    David Young

Reply Children