SMART datagrid v.1 > Classes > CellStyleManager

Back  Forward

DataLudi.CellStyleManager.endUpdate  method

It decreases internal update lock count which has been increased by beginUpdate

When the lock count becomes 0, if explicitly specify parameter refreshViews as true or do not specify separately, it will update grids which use this style manager. You should call beginUpdate, endUpdate in pairs. 

function endUpdate (refreshViews: Boolean);
Returns
Void
Parameters
refreshViews - Boolean. Defaults to true.
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
beginUpdate
setStyleAt
Examples
Cell Styles