Grid column specs.
Each column spec. is an object specifying the following properties:
width: number
Optional (default 10); may not be observable.
The initial width in pixels of the column.
valueField: string
Required; may not be observable.
The name of the field in the data row to display in this column.
valueFormatter: function (any) -> any
Optional (default identity); may not be observable.
An optional formatting function to be applied to the row field in the
cell template.
valueTemplateID: string
Optional (default "RawbGridTextCellTemplate")
The ID of the HTML element holding the template for rendering value cells in this
column.
header: any
Optional (default undefined); may not be observable.
The header value to display in this column.
headerFormatter: function (any) -> any
Optional (default identity); may not be observable.
An optional formatting function to be applied to the header value in the
cell template.
headerTemplateID: string
Optional (default "RawbGridTextCellTemplate")
The ID of the HTML element holding the template for rendering the header cell
in this column.
headerClick: function ()
Optional (default is the column sorting function); may not be observable.
The action to carry out when the user clicks on the header cell
in this column. The default column sorting function works as follows: if the first
and last value cells in this column are in ascending order, then the sort is to
descending order, otherwise it is to ascending order. Comparison works as expected
on numbers, booleans, dates, and strings (string comparison is case and culture
insensitive).
headerDblClick: function ()
Optional (default undefined); may not be observable.
The action to carry out when the user double-clicks on the header cell
in this column.
footer: any
Optional (default undefined); may not be observable.
The footer value to display in this column.
footerFormatter: function (any) -> any
Optional (default identity); may not be observable.
An optional formatting function to be applied to the footer value in the
cell template.
footerTemplateID: string
Optional (default "RawbGridTextCellTemplate")
The ID of the HTML element holding the template for rendering the footer cell
in this column.
footerClick: function ()
Optional (default undefined); may not be observable.
The action to carry out when the user clicks on the footer cell
in this column.
footerDblClick: function ()
Optional (default undefined); may not be observable.
The action to carry out when the user double-clicks on the footer cell
in this column.