beforeDelete
The event occurs before deleting record in database and can cancel default delete statement or validate incoming values.
$conn->event->attach("beforeDelete",handlerFunc);
Parameters handlerFunc:
- $action - DataAction Object
Availability:
- Available for Grid, TreeGrid, Tree, Scheduler, DataView, Form
Sample:
- See related beforeUpdate sample.