:: Documentation >>

calculateRowState

Calculates the row state. The row state is a composite value which is calculated from the individual properties (row selected, current row).

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

null

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

Grid templates: row
Row model: state, selected

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