SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onShowEditor  event

셀 편집기가 표시되기 직전에 발생한다. 

이 이벤트 핸들러 내에서 명시적으로 false를 리턴하면 편집기가 표시되지 않는다. 

function onShowEditor (grid: GridBase, index: CellIndex);
Returns
Void
Parameters
grid - GridBase.
index - CellIndex.
Code -1
    grid.onShowEditor = function (grid, index) {
        if (index.column.name() == 'colSalary') {
            return false;
        }
    };
See Also
onUpdateStarted
onInsertStarted
onEditChanged
Examples
Cell Editing