On insert: Operation not allowed
On edit: The edit model does not gets closed.
Fire bug attached: https://imgur.com/a/ycJlF4M
1 Answers
Ticket solved via remote session.
Issue was, In custom events (if third param is set to false) the grid does not perform insert or update operations and you have to code your own database code. And also return JSON string at the end of function to show the result of insert / update (as in docs) — which was missing.
https://www.gridphp.com/docs/grid-events/
$res = array("id" => 0, "success" => false); echo json_encode($res); die;
Your Answer