SMART datagrid v.1 > Classes > CellStyleManager

Back  Forward

DataLudi.CellStyleManager.endUpdate  method

beginUpdateで増加されたた内部アップデートのロックカウントを減少させる。 

ロックカウントが0になって、パラメーターrefreshViewsを明示的にtrueに指定するか、 別度に指定しなければ、このスタイル管理者を使うグリッドたちを更新する。 必ずbeginUpdateendUpdateの呼び出しが共に起こらなければならない。 

function endUpdate (refreshViews: Boolean);
Returns
Void
Parameters
refreshViews - Boolean. デフォルト値は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