DHTMLX Docs & Samples Explorer

setPagingWTMode(navButtons,navLabel,pageSelect,perPageSelect)

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxgrid_pgn.js

configure paging with toolbar mode ( must be called BEFORE enablePaging)

  • navButtons - (boolean) enables/disables navigation buttons
  • navLabel - (boolean) enables/disables navigation label
  • pageSelect - (boolean) enables/disables page selector
  • perPageSelect - (boolean or array) enables/disables rows-per-page selector. If the parameter is specified as array, it defines options of the dropdown list.
//disables page selector
mygrid.setPagingWTMode(true,true,false,true);
//disables row-per-page selector
mygrid.setPagingWTMode(true,true,true,false);
//defines options of row-per-page selector: 30 rows per page, 60 rows per page etc.   
mygrid.setPagingWTMode(true,true,true,[30,60,90,120])

See also: setPagingSkin, setPagingTemplates