This question is locked. New answers and comments are not allowed.
I have a master file that has the following markup towards the bottom:
On my .aspx content page, I have a Grid that uses Ajax DataBinding.
When I do this, I get the following error from the ScriptRegistrar:
This doesn't happen when I choose Server() DataBinding, but does also happen for WebService() DataBinding as well.
| <% Html.Telerik().ScriptRegistrar().DefaultGroup(group => group |
| .Add("~/Scripts/MicrosoftAjax.js") |
| .Add("~/Scripts/MicrosoftMvcAjax.js") |
| .Add("~/Scripts/jquery-ui-1.7.2.custom.min.js") |
| .Combined(true) |
| .Compress(true) |
| .CacheDurationInDays(1) |
| ).Render(); %> |
| </body> |
On my .aspx content page, I have a Grid that uses Ajax DataBinding.
| <% Html.Telerik().Grid(this.Model) |
| .Name("MemberGrid") |
| .DataKeys(keys => keys.Add(c => c.Id)) |
| .DataBinding(config => config |
| .Server() |
| .Select("MemberIndexAjax") |
| .Update("MemberUpdateAjax") |
| ) |
| .Columns(col => |
| { |
| col.Bound(o => o.FirstName).Title("First Name"); |
| col.Bound(o => o.LastName).Title("Last Name"); |
| col.Bound(o => o.Email).Title("Email"); |
| col.Bound(o => o.MemberActive).Title("Active"); |
| col.Command(action => action.Edit()).Title("Edit"); |
| }).Render(); %> |
When I do this, I get the following error from the ScriptRegistrar:
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
Line 69: <% Html.Telerik().ScriptRegistrar().DefaultGroup(group => group
Line 70: .Add("~/Scripts/MicrosoftAjax.js")
Line 71: .Add("~/Scripts/MicrosoftMvcAjax.js")
This doesn't happen when I choose Server() DataBinding, but does also happen for WebService() DataBinding as well.