In remove code, you can check row data before deletion; but how to prevent deletion for certain values?
remove
Like in this pseudo code for example;
if (rowData.stock > 0) return "You can not delete this product because it is still in stocks..".
I'd be tempted to use a server-side validator for this. You could do it on the client-side using preSubmit (client-side validation example), but for security you should make sure that the server-side does the check as well.
preSubmit
ALlan
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
I'd be tempted to use a server-side validator for this. You could do it on the client-side using
preSubmit
(client-side validation example), but for security you should make sure that the server-side does the check as well.ALlan