Skip to content

onBeforeEditStart

fires before edit operation is initiated

function onBeforeEditStart(
// the cell that will be edited (details below)
cell: object
): boolean

boolean returning false will prevent editing of an item

datagrid1.attachEvent("onBeforeEditStart", function(cell){
//... some code here ...
return true;
});

The cell parameter is an object with the following properties:

  • row - (number) the number of the row,
  • column - (string) the ID of the column.
datagrid1.attachEvent("onBeforeEditStart", function(cell){
console.log("The editor will be opened in row " + cell.row + " column \""
+ cell.column + "\"");
return true;
});

Articles

API