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
760
Sorting
posted

The sorting in the grid gives me some javascript error when there are more than 1000 records in the grid. The exact error is

Microsoft JScript runtime error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data

The sorting works with less number of records in the grid but as soon as the number of records are about 1000, it falls over.

Any suggestion would be helpful. This is a bit urgent.

Regards,

Tahir

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hi Tahir,

    Are you using EnableAjax set to true?  If this is the case, there is a limit to how much information can come back from an Ajax request.  If it is too large, you get this problem.  If you tried to delete one row, the same thing would happen.  You have a couple of options.  You can either set EnableAjax to false (and wrap the grid in an update panel if you wish), turn on paging, or turn on virtual scrolling.

     

    regards,

    David Young

Children
No Data