SMART datagrid v1.4 > Classes > CellStyleManager

Back  Forward

DataLudi.CellStyleManager.endUpdate  method

beginUpdate로 증가된 내부 업데이트 락 카운트를 감소 시킨다. 

락 카운트가 0이 되고, 매개변수 refreshViews를 명시적으로 true로 지정하거나, 별도로 지정하지 않으면, 이 스타일 관리자를 사용하는 그리드들을 갱신한다. 반드시 beginUpdate, endUpdate 호출이 쌍으로 이루어져야 한다. 

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