Sets or retrieves the cell state. The cell state is a composite value which is calculated in the calculateCellState method from the individual properties (cell selected, current column, current row).
The cell state is linked to the css class in the cell template and determines grid cell visual appearance.
var value = obj.getCellState();
obj.setCellState(value);
obj.onCellStateChanging = function(value){...};
obj.onCellStateChanged = function(value){...};
obj.onCellStateError = function(value){...};
default implementation -
obj.calculateCellState = function(i, j){
var state = "";
if (this.getCurrentColumn()==i && this.getCurrentRow()==j){state = "current"}
if (this.getCellSelected(i, j)){state = "selected"}
this.setCellState(state, i, j);
};
Grid templates: cell
Cell model: text, image, tooltip, link, value, data, format, editable, selected