onBeforeEditStart
fires before edit operation is initiated
function onBeforeEditStart( // the cell that will be edited (details below) cell: object): boolean
Returns
Section titled “Returns”boolean
returning false will prevent editing of an item
Example
Section titled “Example”datagrid1.attachEvent("onBeforeEditStart", function(cell){ //... some code here ... return true;});
Details
Section titled “Details”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;});
See also
Section titled “See also”Articles
API