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

Issue with Hierarchy view of Rad Grid

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Umesh
Top achievements
Rank 1
Umesh asked on 17 Sep 2012, 08:39 AM
Hello Team,

We are showing the records in Hierarchical view, if we are displaying more than 8000 rows in the rad grid.
it gives us below exception.

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


we have set maxJsonLength property as well but it did not help
 <system.web.extensions>
       <scripting>
           <webServices>

   <jsonSerialization maxJsonLength="5000000" />
           </webServices>
       </scripting>
   </system.web.extensions>

Could some one please help us out to overcome with this issue?

-Umesh

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Sep 2012, 07:08 AM
Hello Umesh,

If you use HierarchyLoadMode="Client", then switch it to ServerOnDemand (default value), so only the currently needed rows are displayed. Alternatively, you could turn off AJAX. Another option is also to decrease the page size of your grid. I assume you do not mean that all 8000 rows are rendered at once, but even if they are 100+, this could produce a large response.

Kind regards,
Tsvetina
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.
0
Chethan Rajashekaraih
Top achievements
Rank 1
answered on 26 Sep 2012, 07:31 AM
Hi Telerik Team 
 
                 We have developed an Hierarchy Grid using telerik which is capable of loading 5000 rows at one go .If we increase the number of rows loading to the grid, it throws exception saying JSON Serailization and Deseralization exceeds Max Length .Telerik Grid Internally uses .Net JSON to Serailization and Deseralization the Data .
By default the Max length is set to 2 M.B for  .Net JSON Serailization andthis can be customized to increase more than 2 M.B .

We tried to increase the Max length by adding the xml tag in web config file but it didnt work .Can you please help us to customized the JSON Serailization  within the telerik control so that we can load more than 2 MB data in to the grid


Regards,
Chethan Rajashekaraiah
Tags
Grid
Asked by
Umesh
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Chethan Rajashekaraih
Top achievements
Rank 1
Share this question
or