grid.Column Class
Specification of a column object for grid.ColumnManager. You can not create objects of this class
Item Index
Attributes
renderer
Function
Custom renderer for text in column. This is a function. Two parameters are sent to this function. The first one is the record value of this cell, the second one is the record it's self. The function should return a string which will be the value rendered in the cells of this column.
Default: undefined
Example:
renderer:function(value){
if(value >= 0){
return '<span style="color:blue">' + val + '</span>';
}else{
return '<span style="color:red">' + val + '</span>';
}
}