Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by shaffi on May 06, 2009 00:07
open dhtmlx forum
how t customize paging in dhtmlx grid

Hi,
i'm new to dhtmlx grid.can u please tell how to customize the paging in grid.Actually my requirements in paging has to be appear on top right corner of the grid with only next and previous buttons.
Answer posted by dhxSupport on May 06, 2009 01:14

Method enablePaging(fl,rowsPerPage,pagesInGroup,pagingArea,recInfoEnabled,recinfoArea);  has parameters:

# fl - true to enable paginal output
# rowsPerPage - number of rows per page
# pagesInGroup - number of pages in group. You can set any number, but it is recommended to use smaller. There is also some auto-limits when using autoloading (grid will correct value automatically).
# pagingArea - ID of element (or element) where to append paging pannel to (where to show pages navigation)
# recInfoEnabled - means that Records Info will be shown ("Results 11-40 from known 100")

# recinfoArea - ID of element to append Records Info to (by default it will be append to paging panel)

You can place elements with id's pagingArea and recinfoArea at any place on your page
You can find complete reference how to customize paginal output here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_paging.html#grid_art_custpaging