Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8359857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:17:13+00:00 2026-06-09T11:17:13+00:00

I am using telerik grid for display data from sql db… When I displaying

  • 0

I am using telerik grid for display data from sql db… When I displaying more than 3500 rows, it returns: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

Everywhere on internet and Telerik Troubleshooting manual also too, wrote that reason is edit web.config. It doesn’t help me… I tryed return data like this:

JavaScriptSerializer serializer = new JavaScriptSerializer { MaxJsonLength = 536870912, RecursionLimit = 100 };
return new ContentResult()
{
    Content = serializer.Serialize(data),
    ContentEncoding = Encoding.UTF8
};

When I return data as ContentResult, filtering and sorting stops working.

I was trying this solution too: http://anyrest.wordpress.com/2011/09/27/large-json-result-for-teleriks-mvc-grid/ and it isn’t helps me…

Here is code from my Controller:

[GridAction, POST("GridData")]
public ActionResult _Index()
{
    var data = GetExclusionsDataCollection();
 
    return View(new GridModel { Data = data });
}

Thanks,
David

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:17:14+00:00Added an answer on June 9, 2026 at 11:17 am

    i contacted Telerik support and now I can share reason of my issue…

    There is link to Telerik Code library. Important part is adding line into global.asax.cs. This part of their solution isn’t in most of other solutions that i have seen…

    DI.Current.Register<IGridActionResultFactory>(() => new MyCustomGridActionResultFactory());
    

    This line causes ovveride default Telerik functionality and active your custom Json result…

    -David

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First some background..I am using the Telerik MVC Grid to display data. The grid
I have to display data using the telerik grid (master / detail) . Is
The Telerik MVC grid I am using is shown below. The data is displaying
I have a Rad Grid View that I'm using to display some data and
This is the architecture: SearchController retrieves data and fills a Telerik grid. Rows are
In web application[asp.net], i am using telerik grid control, i am bind the data
I'm using Telerik's Grid control from the MVC Extensions. I have it set up
I'm using telerik mvc grid and bound my columns throuugh Data Table, I having
jQuery GET function does not execute. I am using a Telerik Data grid that
Using a Telerik Grid with ASP.NET MVC 3 Razor engine. When a user selects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.