PDA

View Full Version : GridPanel DeleteSelected



Timothy
Mar 22, 2009, 7:25 PM
Hello,

Would appear that the GridPanel deleteSelected function does not invoke OnBeforeRecordDeleted.

Could you please advice how I could achieve this?

Cheers,
Timothy

Vladimir
Mar 23, 2009, 10:43 AM
Hi Timothy,

deleteSelected removes records on client-side. You should call 'save' to submit changes to the server 

Timothy
Mar 23, 2009, 11:10 AM
Hello vladimir,

Thanks, so I guess calling .deleteSelected() followed by .save() will satisfy my complication?

Cheers,
Timothy

Vladimir
Mar 23, 2009, 11:20 AM
Yes,

grid.deleteSelected();
grid.save();


should works
 

Timothy
Mar 23, 2009, 11:38 AM
Works, thanks Vladsch.

Cheers,
Timothy