Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Darcy on Sep 11, 2007 15:32
open dhtmlx forum
Is there a way to setText of the paging toolbar's one of the button at later time? I want to set the text of the paging button to grid's selected row's id. line 425 iButton.setText(this._WTlabels[1]+(startRowInd+1)+this._WTlabels[2]+(lastRowInd+1));

Answer posted by Stanislav on Sep 13, 2007 12:55
button can be accessed as

    grid.aToolBar.getItem('ID')

default buttons IDs
    leftabs, left, results, right, rightabs, pages, perpagenum

to change state or values you can use default toolbar API
http://www.scbr.com/docs/products/dhtmlxToolbar/index.shtml