Sigma.Column

Instance Properties

chartColor
String. To specify color of this column in chart.
Sample
chartColor: 'eecc99'

editor
Object. To specify a editor for this column. See Sigma.Column.Editor

freeze:function()
To freeze this column.

frozen
Bool. To specify column is frozen. Those frozen column will never scroll horizontally and will always show up in left the side of grid.

getColumnNo:function()
To get index of this column.

grouped
Bool. To specify whether this column is in group.

hdRenderer:function(header,colObj,grid)
Column header renderer.
header: Header title of column.
cobj: Column object.
grid: Grid object.
returns: HTML code for column header.

header
String. Title of column header.

hidden
Bool. To indicate whether column is hidden or not. Read only..

hide:function()
To hide this column.

id
String. Id of column.

inChart
Bool. To specify whether value of this column will appear in chart or not.

initValue:function(grid,rn,record)
This function help developers define a formular cell.
grid: Grid object.
rn: Record of the row where the cell at.
returns: Value of the cell.
Sample
function example_initAvg(grid,rn,record){
var revenue2006 = grid.getColumnValue('revenue2006',rn);
var revenue2007 = grid.getColumnValue('revenue2007',rn);
var revenue2008 = grid.getColumnValue('revenue2008',rn);
var avg =(revenue2006+revenue2007+revenue2008)/3;
return avg;
}

minWidth
Integer. To specify minimum column width when user resizes column.

moveable
Bool. To specify whether can column can exchange position with others by user dragging column's header. Set to true by default.

printable
Bool. To specify whether this column will be printed out. Set to true by default.

renderer:function(value ,record,colObj,grid,colNo,rowNo)
Cell renderer.
value: Cell value.
record: Record of the record where cell is at.
colObj: Column object.
grid: Grid object.
colNo: Column number.
rowNo: Row number.
returns: HTML code for cell.

resizable
Bool. To specify whether column is resizable by user dragging risizing handler. Set to true by default.

show:function()
To show this column.

sortable
Bool. To specify whether column is sortable by user clicking column's header. Set to true by default.

toggle:function()
To show/hide this column.

toggleGroupCol:function()
To group/ungroup this column.

unfreeze:function()
To thaw this column.

width
Integer. Width of column in pixel. Percentage not supported.