:: Documentation >>

row state

Sets or retrieves the row state. The row state is a composite value which is calculated in the calculateRowState method from the individual properties (row selected, current row).

The cell state is linked to the css class in the cell template and determines grid cell visual appearance.

Syntax

var value = obj.getRowState(); 
obj.setRowState(value);        

obj.onRowStateChanging = function(value){...}; 
obj.onRowStateChanged = function(value){...}; 
obj.onRowStateError = function(value){...}; 

Defined in

row model

Examples

default implementation -

obj.calculateRowState = function(i){
    var state = "";
    if (this.getCurrentRow()==i){state = "current"}
    if (this.getRowSelected(i)){state = "selected"}
    this.setRowState(state, i);
};

See also

Row model: count, indices, position, offset, selected, height

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5