Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by john on Sep 22, 2008 23:51
open dhtmlx forum
the question about footer color

how can I change the footer color ? set background in CSS? which part of css can I change ?Thanks
Answer posted on Sep 23, 2008 02:47
It depends on the skin you use. For default skin: div.gridbox div.ftr td, for other skins div.gridbox_[skin name] div.ftr td
Answer posted by john on Sep 25, 2008 01:03
thanks. how I can format the total of footer in 2 decimal place (0.00)????
Answer posted by dhtmlx support on Sep 26, 2008 06:59
If this mask is applied to the whole column:

mygrid.setNumberFormat("0.00",COLUMN_INDEX);

you can try to use the following approach:
 
mygrid.attachEvent("onStatReady",function(){

     mygrid.ftr.rows[1].cells[COLUMN_INDEX].innerHTML = mygrid._aplNF(mygrid.ftr.rows[1].cells[COLUMN_INDEX].innerHTML,COLUMN_INDEX);

})
 
The COLUMN_INDEX is index of formatted column. onStatReady is internal event. It occurs when footers' values are calculated.