onAfterDelete

fires after successful data deletion

void onAfterDelete(object response,id id,object details);
responseobjectthe JSON object with details of the server side response
ididthe old ID of the related item
detailsobjectthe object that holds the state of data saving

Example

dp.attachEvent("onAfterDelete", function(response, id, object){
    //... some code here ... 
});

Details

1 . The response parameter is a server response that contain id, status and other properties, e.g.:

  • id - old ID (clientside);
  • newid - new ID (serverside);
  • sid - old ID (clientside);
  • tid - new ID (serverside);
  • status - status of the operation ("delete");
  • type - operation type ("delete");
  • value - saved data value.

2 . The id parameter is the item ID.

3 . The details parameter contains operation details, namely:

  • data - object with the information about the action performed;
  • loader - Ajax loader object;
  • text - full text of serverside response.

Will not fire for "error" or "invalid" responses.

//for such response
{ id:"123", status:"custom" }
//the onAfterCustom event will be called
See also
Back to top