getEditor

returns an editor object

object getEditor( [string id] );
idstringthe record id
objectan object with the editor state and info

Example

var editor = view.getEditor(row_id);

Details

If the id is not provided, the method returns info about the last opened editor.

Editor object

{
    node: html_node_of_editor,
    value: initial_value_of_editor
    config: configuration_of_editor
}

You can access all methods of editor through this object

//get value
var value = some.getEditor().getValue();
//set value
some.getEditor().setValue( new_value );
//set focus
some.getEditor().focus();
See also
Back to top