Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Darshita Patel on Sep 10, 2007 20:53
open dhtmlx forum
dhtmlXGrid's Paging control

Hi,

I am trying to add some additional items on the paging control of the grid. I want to add information as # of rows selected. Total number of rows in the table etc. on the paging control along with all other paging items. Is this possible?

I would appreciate if you can provide me some guidelines as to how to add items in the paging control.

THanks,
Darshita
Answer posted by Stanislav on Sep 11, 2007 11:03
If you mean paging with toolbar you can update code in "dhtmlxgrid_pgn.js"
    lines 473-491 - code of toolbar construction, you can add any additional buttons, labels here

    line 425
    iButton.setText(this._WTlabels[1]+(startRowInd+1)+this._WTlabels[2]+(lastRowInd+1));

    this is here existen label draw, you can add|replace text of this method to change existing label on toolbar