Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by hjshin on Oct 19, 2009 19:43
open dhtmlx forum
direction of paging toolbar

Hi,

my qeustion was...this

could i set direction(default is down ---> up) when open the list of pages(page1, page2.....)?

Thanks

and your answers was...this

Stanislav (support), posted: Oct 19, 2009 02:28 | Direct link: http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=12292&a=19917
Can be done only by code modification. ( the order is hardcoded in dhtmlxgrid_pgn.js )
 
 
 
--->
i don't know where is that section what is hardcoded.
 
how could i modify the code of dhtmlxgrid.pgn.js???
Answer posted by Stanislav (support) on Oct 20, 2009 02:27
sources folder of package contains not-compressed version of dhtmlxgrid_pgn.js

line 366

for(var i=0;i<totalPages;i++){
      this.aToolBar.addListOption('pages', 'pages_'+(i+1), NaN, "button", this.i18n.paging.page+(i+1));
}

to reverse order just change it as

for(var i=totalPages-1; i>=0; i--){