Topic group Related topics
Event fired when attempting to delete the current row; return value determines if the row is deleted.
A row may be deleted explicitly by calling the delete( ) method, or implicitly via the user interface by choosing Delete Rows from the default Table menu or toolbar. canDelete may be used to make sure that the user wants to delete the current row.
canDelete may also be used to do something with the current row, just before you delete it. In this case, the canDelete event handler would always return true.
The canDelete event handler must return true or false to indicate whether the row is deleted. For information on how canDelete interacts with other events, see delete( ).