tabalinas / jsgrid

Lightweight Grid jQuery Plugin
http://js-grid.com
MIT License
1.53k stars 353 forks source link

Manipulating data in a custom field before a row is deleted #1438

Open PeterB316 opened 1 week ago

PeterB316 commented 1 week ago

Hi this is a request for help.

I've got a custom field, and it's working great for filtering, editing, and inserting.

I'm using the filterValue, insertValue, and editValue functions in the custom field to do some data manipulation before things happen in order to make it work. That's all fine.

What I can't do nicely is anything before a record is deleted. The only way I've got to do something is using onDeleting, but that's got to be done for each table where I use the custom field, whereas I'd like to make the code a part of the field definition.

Is there a way to do this nicely?