onBeforeDelete

fires before sending data for item deletion

void onBeforeDelete(id id,object details){ ... };

Parameters

ididold id of related item
detailsobjectobject which holds state of data saving

Example

dp.attachEvent("onBeforeDelete", function(id, details){
    //... some code here ... 
});

Details

1 . The id parameter contains old (client-side) item ID.

2 . The details parameter contains data saving details, namely:

  • data - data item object;
  • id - old (client-side) ID;
  • operation - the type of operation ("delete").
See also
Back to top