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

Manually Paging / attach to paging event

5 Answers 477 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BigzampanoXXl
Top achievements
Rank 1
BigzampanoXXl asked on 24 Jan 2012, 03:29 PM
Is there an easy way (without changing the kendo-UI Files) to do the paging in my grid on my own.
I need to do so because I'm using a toolkit for receiving my requested data via REST calls. I am not able to use the automatic odata databinding because the Service is a WCF Svc and it does not support $callback and $format parameters and I am not able to extend this wcf service.  
 
So I make a call for getting the next 50 Items which I want to bind to the grid on 1 page.

It would be great if I can give the grid a function pointer for paging.

Thanks

5 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 24 Jan 2012, 05:15 PM
Hi,

In order to enable server paging you should set DataSource serverPaging option to true. Then when DataSource is populated the paging information (as page and pageSize parameters) will be send through the request. Note that you may re-map the query parameters to more server friendly format by using parameterMap function of the transport. Also have in mind that you should you set the schema's data and total fields to where the result and total number of items is located into the response.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
BigzampanoXXl
Top achievements
Rank 1
answered on 25 Jan 2012, 12:05 PM
Thank you for your answer but I think my problem explanation has been misunderstood.

I just want to react if the user is clicking on page forward or page backward. Depending which page command gets executed I want to call my separate functions. In these functions I want to load my datasource (next/prior e.g. 50 entries).
I don't wan't to use automatic server calls.
Is there any way to do so?

Best regards

0
Rosen
Telerik team
answered on 25 Jan 2012, 01:25 PM
Hello,

Unfortunately, this is not currently possible.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Robert Tiddy
Top achievements
Rank 1
answered on 13 Apr 2012, 12:14 AM
Hi Guys,

Is there really no possible way what so ever to do this? I really need to do this in my project, I have spent a large amount of time adding this Grid control into my web project and only now just came to see that its not possible to do this?

There has to be a way to do manual paging? It would only require some event for paging forward and backward, and another property to tell the grid control how many pages to be displayed?

Thanks!
0
Atanas Korchev
Telerik team
answered on 13 Apr 2012, 07:06 AM
Hello,

 You can probably implement custom paging but you need to create the paging user interface by yourself. Then you need to call the page() method of the grid's dataSource to do the actual paging. Currently we don't have an example how to do this because paging is shipped as a built-in feature.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
BigzampanoXXl
Top achievements
Rank 1
Answers by
Rosen
Telerik team
BigzampanoXXl
Top achievements
Rank 1
Robert Tiddy
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or