Skip to main content

editCell()

enables editing of a TreeGrid cell

editCell(rowId: Id, colId: Id, editorType?: "input" | "select" | "datePicker" | "checkbox" | "combobox" | "textarea"): void;

Parameters:

  • rowId: string | number - the id of a row
  • colId: string | number - the id of a column
  • editorType: string - optional, the type of an editor used in a cell: "input", "select", "datePicker", "checkbox", "combobox", "textarea"

Example

grid.editCell(grid.data.getId(0),"project");

Related sample: TreeGrid. Editing data

Change log:

  • added in v6.4
  • The "textarea" type of the editor is added in v7.1