As I mentioned before, the GridBatchEditing.deleteRecord triggers the row validators if the row to be deleted is open.
I didn't find a way around it but to override the default deleteRecord and disable the global validation. Here's the code:
Where batchManager is a variable obtained from calling get_batchEditingManager, and the rowDeleteing/Deleted are manual events I add to the object to cater for other components.
I didn't find a way around it but to override the default deleteRecord and disable the global validation. Here's the code:
var origDeleteRecord = batchManager.deleteRecord; batchManager.deleteRecord = function (tableView, row) { var pv = window.Page_Validators; window.Page_Validators = null; // HACK: batchManager.raise_rowDeleting(row); origDeleteRecord.call(batchManager, tableView, row); batchManager.raise_rowDeleted(row); window.Page_Validators = pv; }Where batchManager is a variable obtained from calling get_batchEditingManager, and the rowDeleteing/Deleted are manual events I add to the object to cater for other components.
