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

Adjusting WCF Web Service to support server side paging for grid

2 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 15 Jul 2015, 08:19 PM

I am using a WCF Web Service to populate my kendo grid.

 

I currently am returning a List of item objects ( List<items> ).  Now I need to enable server side paging and am at a loss as to how to go about this.  I know I have to return total, but how do I add the total to what I'm returning?

 Also what arguments do I need to add to my method in order to receive the skip, take, page, pageSize, etc from the grid?

2 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 15 Jul 2015, 09:35 PM

I figured out how to get the arguments for skip, take, page, and pageSize.  Now do I need to use this data to query the database and return the appropriate dataset or is this done for me?

 

0
Daniel
Telerik team
answered on 17 Jul 2015, 02:58 PM
Hello Matt,

Please check this example. It demonstrates how to use server paging, filtering and sorting with a WCF service.

Regards,
Daniel
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
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or