Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by shaffi on May 17, 2009 03:23
open dhtmlx forum
How to know how many pages are their in pagintion

Hi,
can any one please tell me how to know how many total pages are their in grid pagination.my requirements is to show like this

page 1 of totalpages
Answer posted by Support on May 18, 2009 03:17
You can get total number of rows as 
      var total = grid.getRowsNum();
and size of the page
     var size = grid.rowsBufferOutSize

In such case, total count of pages will be 
       Math.ceil(total/size);