This is a migrated thread and some comments may be shown as answers.

[Solved] Json length exceeded with ajax binding

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Florent
Top achievements
Rank 1
Florent asked on 02 Mar 2012, 04:48 PM
Hello,

I have a grid using ajax binding. The binding is successful for 200 rows but when I try to get 500 rows, I receive an error.

Error : "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property".

I modified my web.config with this: 
<system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="2147483647" />
      </webServices>
    </scripting>
</system.web.extensions>

But it doesn't work.

The serialization of the object GridModel is performed by Telerik or by .net ?
 

Thank you for your answers.

Florent

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 06 Aug 2012, 08:07 AM
Try this.
Tags
Grid
Asked by
Florent
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or