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: [dhtmlx.com/docs/products/kb/inde ... 92&a=19917](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???

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–){