silverstripe/sapphire — comment on commit 1b42b2afa784bce3c3ef79c46972559ce754fd34
File: javascript/GridField.js line 21
By sminnee:

It would be worth adding support for executing a GridField action via JavaScript. We'd need to consider what should be done with the response - it may not always be appropriate to refresh the GridField in its entirety. New values of X-Get-Fragment might be useful here, e.g. 'X-Get-Fragment: Status-JSON-Pair' might just return things like:

{ "success" : 1 }
{ "success' : 0, "message" : "You can't delete that record" }