Is there a way to intercept the row delete function to show a confirmation dialog? I can easily show the dialog when the onRowDeleted event is fired, but the row is deleted anyway, of course. Any clues?
Hello Matt,
There currently is no event coming out of the box to catch the deletion of a row.
I don't really know what the context of this requirement is, but you can easily get a confirmation dialog at the point you delete a row:
if(confirm("Are you sure you want to delete this row"){ this.grid.deleteRowById(id);}
If this is not possible, you can submit feature request in our GitHub repository here.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case.
This will give you the opportunity do directly communicate with our development team regarding the issue and get notifications whenever a new information is available.
Please let me know if you need any further assistance.
Sincerely,Tihomir TonevAssociate Software DeveloperInfragistics
Hi Tihomir,
Please allow me to clarify further. I am speaking in the context of the Igx Action Strip. When a user chooses to delete a row using the delete icon in the action strip, the deletion happens immediately without confirmation or any chance to undo. I think this is very dangerous given how closely aligned the action strip buttons are. It is very easy to delete accidentally. This is why I would like to hook in a confirmation dialog, but currently it does not appear to be possible. Is that correct? If so, I will add the feature request, as you suggested. Thanks
At this moment there are no events of the ActionStrip that can be used, so the only way would be to go trough the events of the grid.
I would suggest logging a feature request for beforeAction and afterAction on the grid specific action strips.
If you have troubles logging the request and need guidance, please let me know.