SMART datagrid v.1 > Classes > GridColumn
The checked state of column.
The check box of column header cell displays this state. And, when this value is changed, GridBase.onColumnChecked event will be fired.
Defaults to false.
$('#checkColumn').click(function () {
var col = grid.focusedColumn();
if (col) {
col.setChecked(true);
}
});
$('#toggleColumnChecked').click(function () {
var col = grid.focusedColumn();
col && col.toggle('checked');
});
grid.onColumnChecked = function (grid, column, checked) {
column.styles().setBackground(checked ? '#1000ff00' : '#ffffff');
};