SMART datagrid v.1 > Classes > CellStyleManager

Back  Forward

DataLudi.CellStyleManager.beginUpdate  method

Whenever specify the style in data cells by setStyleAt, it will increase internal update lock count so that it will not request update immediately to grids which have been connected to this style manager. 

After applying styles, it should request change to grids by calling endUpdate. You should call beginUpdate, endUpdate in pairs. 

function beginUpdate ();
Returns
Void
Code -1
    var sm = grid.styleManager();
    sm.beginUpdate();
    try {
        for (var r = 0; r < 10; r++) {
            sm.setStyleAt(r, 1, 'style01');
        }    
    } finally {
        sm.endUpdate();
    }
See Also
endUpdate
setStyleAt
Examples
Cell Styles