You mentioned 3 solutions:
1, Enable paging by calling the Pageable method
2, Use a View Model to serialize only the required properties of your model.
3, Manually serialize the DataSourceResult
For the first one, for I am using a chart, which is not pageable, I think?
The second one, do you mean pass as lease properties of the model as possible, to reduce the data to process? I will do this.
The source code of the third solution is :
But I must return a view result to the view page, not a json format one. I tried the solution, the asp.net mvc view only display the data in json, not page.
Is there a solution for the root cause, not a workground?