Hi all
After clicking the "Save Changes" button when batch editing a grid, I'd like to set a message once the data has been updated. Currently, the only visual clue that it's been successful is that the little red "triangles" disappear next to the edited entries. My users need something a little less subtle :).
I see there is an event :
saveChanges
Fires before the grid calls DataSource sync.
However, is there an event after the DataSource sync is successful?
I've tried placing a success function in the dataSource's transport: update but it never seems to get hit. Also done a lot of searching but can't find any suggestions.
update: {
url:
"sEMM.asmx/updateEMMData"
,
//specify the URL from which should update the records.
contentType:
"application/json; charset=utf-8"
,
// tells the web service to serialize JSON
type:
"POST"
,
//use HTTP POST request as the default GET is not allowed for ASMX
success:
function
(result) {
alert(
"success"
);
setMessage(
"Changes saved"
);
options.success(result);
},
error:
function
(e) {
alert(
'error'
);
}
}
Thanks, Alison