Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the page size and page number of kendo grid in Jquery

I have a update button in grid. So when I click on update button I am able to get the data of the grid but,

Can any one help me to find the PageSize and Page number of a Kendo Grid in the Jquery ?

like image 482
Anirudh Agarwal Avatar asked Jul 30 '13 05:07

Anirudh Agarwal


1 Answers

You can get page number by calling function page() on the dataSource object in kendo grid you have, and page size by calling function pageSize() of that object.

This is how you should do it, based on official Kendo UI documentation http://docs.kendoui.com/api/framework/datasource#methods-page :

$("#GRID_ID").data("kendoGrid").dataSource.pageSize();
$("#GRID_ID").data("kendoGrid").dataSource.page();
like image 110
kul_mi Avatar answered Oct 10 '22 02:10

kul_mi