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

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

1 Answer 229 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stan
Top achievements
Rank 1
Stan asked on 15 Dec 2011, 01:49 PM
There is a known problem with maxJsonLength property:

http://support.microsoft.com/kb/981884

However, this hotfix did not work. Maybe because it is for the MS UpdatePanel?

If so, how can this be resolved? This error comes up when grid tries to pull too many rows.

-Stan

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 19 Dec 2011, 09:13 AM
Hi Stan,

The hotfix you have linked to applies to the UpdatePanel control only. Essentially, the UpdatePanel looks for a key in your <appSettings> and sets the MaxJsonLength property of the internal JavaScriptSerializer object accordingly. The fix, however, is not applicable to any of the RadControls. Microsoft provide the maxJsonLength setting in web.config, but it seems the JavaScriptSerializer class is not affected by this setting.

Given that, we do not have a global means of increasing the MaxJsonLength of the general-purpose JavaScriptSerializer class we use. However, if you open a formal support ticket and send us a test project demonstrating your particular scenario, our support staff may be able to provide a specific solution for your scenario.

Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Stan
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or