SMART datagrid v.1 > Classes > DynamicStyleCase
The expression list which determines whether to apply the style.
The expression is shown by the grammar of SMART datagrid itself. Please refer to Expression Overview topic. In order to use JavaScript, it will use callbacks property instead.
var columns = [{
name: 'colQty',
fieldName: 'quantity',
dynamicStyles:[{
expressions: [
"row % 5 == 0",
"row % 3 == 0"
],
styles: [{
shapeSize: size1,
numberFormat: fmt1
}, {
shapeSize: size2,
numberFormat: fmt2
}]
}]
},
...
];
grid.setColumns(columns);