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

Manually handle grid paging on asp.net mvc controller

1 Answer 451 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Logan
Top achievements
Rank 1
Veteran
Logan asked on 11 Jan 2016, 12:25 AM

I have a kendo grid that uses paging on the ajax read.  The dataset is too large for me to realistically load completely into memory, but my view model has a couple of intensive calculated fields.

Ideally, I would like the ToDataSourceResult KendoUI extension to work on the IQueryable so the filters and paging from the grid don't work on the entire dataset, but so I can populate the intensive calculated fields on the results that need to be returned.  

 Alternatively, if I could continue to use kendoui's paging ui, but handle it manually on the controller I could turn off the kendui filtering.  It seems that the ToDataSourceResult would either duplicate any paging I did, or it would remove the paging from the UI.

 

What is the suggested way to handle this?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 13 Jan 2016, 08:26 AM
Hello Logan,

For such custom scenarios I would suggest to implmenent custom binding - this way you can fully customize the server response. For more information on the matter you can check the following help article:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Logan
Top achievements
Rank 1
Veteran
Answers by
Vladimir Iliev
Telerik team
Share this question
or