Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stevo on Apr 08, 2008 02:47
open dhtmlx forum
Customizing paging blocks

Can you provide example on how to use setRecordsInfoTemplate(...)?

What is more, I would like to ged rid of those vertical lines between pages and change "<" and ">" to something else (text or image).
Is there any easy way to accomplish this ?

Answer posted by Support on Apr 08, 2008 03:12
>>Can you provide example on how to use setRecordsInfoTemplate(...)?
You can use any text here, the next markers will be replaced with actual values
    [from] - number of first line on page
    [to] - number of last line on page
    [about] - count of rows loaded to client side
    [total] - expected total count of rows
grid.setRecordsInfoTemplate("showing records [from] - [to]")

>>I would like to ged rid of those vertical lines between pages
grid.pagesDevider="&nbsp;"; //rid of vertical lines

>>and change "<" and ">"
can be done only by code modification.
dhtmlxgrid_pgn.js , lines 93 and 126
            pageMark.innerHTML = "&lt;&nbsp;";
             ...
            pageMark.innerHTML = "&gt;";