SMART datagrid v.1 > Classes

Back  Forward

DataLudi.GridRowStyles  class

It specifies Style Set which is applied to individual data row or the rows of specified range. 

It is used as rowStyles property of body and automatically created when initialize body

You can set both types of styles by assign method or individually set them by calling setRow or setRange

Methods
assign
clearRanges
clearRows
setRange
setRow

 

Code -1
    grid.body().rowStyles().assign({
        '11': { background: '#20ff0000' },
        'rows': [{
            'range': 'row % 2 == 1',
            'styles': { background: '#080000ff'}
        }]
    });
    // or
    grid.body().setRowStyles({
        ...
    });
See Also
rowStyles
Examples
Row Styles