I'm not sure how easy that would be in the browser without hacking web2py.js, but on the server, you can check for when a deletion happens and then send back some JS to be executed. Not tested, but maybe something like:
def mygrid(): if request.args(-3) == 'delete': deleted_record = db.mytable(request.args(-1)) response.js = [JS code to be executed upon completion of the Ajax request] grid = SQLFORM.grid(db.mytable) return dict(grid=grid) Anthony On Monday, July 7, 2014 4:32:27 PM UTC-4, Manuele wrote: > > Hi! > is it possible to setup a _javascript_ trigger on grid row deletion > event? Possibly capturing the data of the row that will be deleted? > > thank you in advance. > Cheers > > Manuele > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.