While binding very large data to the grid it throws a following exception.
In our latest MVC grid, we have rendered all the html elements in client side and we have passed the data to the control from server side to client side as Json data by serializing it.
1. By Serializing the JSON data
Serialize the JSON data before send the response from server side. Please refer to the following response for avoiding the MaxJsonLength serialization issue,
2. Using WebMethodAdaptor
Use WebMethodAdaptor to bound the Grid datasource. Use the WebMethodAdaptor to get the data from the controller through post action and bound the Json result as a grid data source.
The result will be as follows.
Figure 1: Shows the Grid rendered by binding data using WebMethodAdaptor.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||Product Version:|
|8573||03/08/2018||03/08/2018||ASP.NET Web Forms||Grid||126.96.36.199|