Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sebastien @ on Jun 11, 2008 03:06
open dhtmlx forum
Paging

I'm switching from 1.5 to 1.6 version of Dhtml Xgrid

1 - I would like to know how to put a link for first page and last page in paginal output. I can't find it in the documentation, and even in the code I only saw the [prevpage] and [nextpage] templates.

2 - How can I set the 'no record found' string?

3 - there is a problem on the display of the info area, when there is no record found it display "Record(s) 1 - 0 of 0"
I think it should'nt be 1

4 - When there is no records with pagin mode the paging area is displayed.
exemple with records in grid : Page(s) : 1 2 3 4 5 >
exemple with no records in grid : Page(s) :
I would like to hide the "Page(s) :" when no records

thanks you
Answer posted by Support on Jun 11, 2008 04:14
http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_paging.html#grid_art_custpaging

>>1 - I would like to know how to put a link for first page and last page in paginal output

There is no special markers, but you can use
    mygrid.setPagingTemplates("<a onclick='mygrid.changePage(0)'>First</a>  ...any here .. .<a onclick='mygrid.changePage(9999)'>Last</a>","")

>>2 - How can I set the 'no record found' string?
   
grid.i18n.paging.notfound="any custom text"

>>3 - there is a problem on the display of the info area
problem confirmed and fixed, please contact us directly at support@dhtmlx.com if you need an updated js file

>>I would like to hide the "Page(s) :" when no records
Can be done only by code modification in dhtmlxgrid_pgn.js