SMART datagrid v.1 > 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