SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.showEditor  method

매개변수 index로 지정한 셀 위치에 편집기를 표시한다. index가 지정되지 않으면 포커스셀 위치에 표시한다. 

편집기를 열기 직전에 onShowEditor 이벤트가 발생한다. 이 이벤트 핸들러에서 명시적으로 false를 리턴하면 편집기가 표시되지 않는다. 

function showEditor (index: CellIndex): Boolean;
Returns
Boolean
Parameters
index - CellIndex.
Code -1
    $('#showEditor').click(function () {
        // 현재 포커스 된 셀에서 에디터를 연다.
        grid.showEditor();
    }
See Also
focusedIndex
onShowEditor
hideEditor
CellEditor