Skip to content
dariusk edited this page Feb 28, 2013 · 25 revisions

Options which you can apply to the columns objects.

Option Default Description
cssClass ”” Accepts a string as a class name, applies that class to every row cell in the column.
defaultSortAsc true When set to true, the first user click on the header will do a descending sort. When set to false, the first user click on the header will do an ascending sort.
editor null The editor for cell edits {TextEditor, IntegerEditor, DateEditor…} See slick.editors.js
field ”” The property name in the data object to pull content from. (This is assumed to be on the root of the data object.)
focusable When set to false, clicking on a cell in this column will not select the row for that cell. (While focusable itself has no default, the default behavior for columns is equivalent to a true value.)
formatter null This accepts a function of the form function(row, cell, value, columnDef, dataContext) and returns a formatted version of the data in each cell of this column. For example, setting formatter to function(r, c, v, cd, dc) { return “Hello!”; } would overwrite every value in the column with “Hello!” See defaultFormatter in slick.grid.js for an example formatter.
headerCssClass null Accepts a string as a class name, applies that class to the cell for the column header.
id ”” A unique identifier for the column within the grid.
maxWidth null Set the maximum allowable width of this column, in pixels.
minWidth 30 Set the minimum allowable width of this column, in pixels.
name ”” The text to display on the column heading.
rerenderOnResize false If set to true, whenever this column is resized, the entire table view will rerender.
resizable true
selectable
sortable false
toolTip ””
width