cell editor in runtime

How to get cell editor in runtime based column id and row id.

The editor object for a datatable cell can be accessed by the getEditor() method.

  • with no parameters, it return the object of a last opened editor. Normally, it is the currently opened editor.
  • Sometimes, editors are opened for several cells at a time. Then, you should pass row id and column id into the function, either as 2 parameters or as a JSON object:
$$("$datatable1").getEditor();
$$("$datatable1").getEditor(4, "year");
$$("$datatable1").getEditor({row:4, column:"year"});

Note that the method will return the editor only if it is opened at the moment.