DataLudi Grid v.1 > Classes > GridBase
CellStyle collection, which can specify style and the property related whith editing by avdata cell unit. Grid creates and manages one CellStyleCollection object through this property.
See CellStyleCollection for more information.
$('#setStyle').click(function () {
if (!grid.cellStyles().exists('style_01')) {
grid.cellStyles().add('style_01', {
readOnly: true,
styles: {
background: '#ff00ff'
}
});
}
});