Sigma.Column

Instance Properties

align
String. Alignment of this column. Could be "left", "right", "center". Set to 'left' by default.

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

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

emptyText
String. To specify what to show in case of null on this column.

filterable
String. To specify whether end user can filter on 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.

frozenable
Bool. To specify whethe column can be frozen by end user manually.

getSortValue : function(value , record){
To specify comparable value.
value: Value of cell.
record: Data record of row.
returns: Comparable value.
The following sample shows how to sort football score.

groupable
Bool. To specify whether this column can be grouped by end user.

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.

headAlign
String. Alignment of this column header. Set to 'left' by default.

header
String. Title of column header.

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

hideable
Bool. To specify whether end user can hide column mannually. Set to true by default.

id
String. Id of column.

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

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

moveable
Bool. To specify whether 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.
sample

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

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

sortOrder
String. Could be 'asc', 'desc' or null.

styleClass
String. To specify css style of the column.

toolTip
Boolean. To specify whether tip pop should show up on this column.

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

Instance Methods

freeze:function()
To freeze this column.

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

hide:function()
To hide this column.

show:function()
To show this column.

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

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

unfreeze:function()
To thaw this column.