Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Oct 24, 2008 02:19
open dhtmlx forum
Grid

Hi,
How to change the color of the column type price
Answer posted by Support on Oct 24, 2008 03:40
The column of color can be defined by setColumnColor command , during grid's init
If you need change colors , which applied to values of price excell - they are hardcoded in dhtmlxgridcell.js 

eXcell_price.prototype.setValue=function(val){
 if (isNaN(parseFloat(val))){
  val=this.val||0;
 }
 var color = "green";

 if (val < 0)
  color="red";