:: Home >>

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.

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

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData