How do you catch exceptions when a editable datatable has error when saving?

How do you catch exceptions when a editable datatable has error when saving?

cmanvacmanva Posts: 37Questions: 0Answers: 0
edited June 2013 in General
When I make a datatable editable ".makeEditable()", I want to catch any exceptions when the modal window tries to add a new record.
How do I edit the datables to catch exceptions?

[code]
$('#auditList').dataTable({
"bServerSide": true,
"sAjaxSource": "@Url.Action("GetAgencyAudits", "Audit")",
"oLanguage": { "sZeroRecords": "No audits available", "sEmptyTable": "No audits available" },
"fnServerParams": function (aoData) {
aoData.push({ "name": "audit_id", "value": audit_id }
);
},
"bProcessing": true,
"iDisplayLength": 10,
"bLengthChange": false,
"bDestroy": true,
"bFilter": false,
"aoColumns": [
{ "sName": "Audit_ID",
"bSearchable": false,
"bSortable": true
},
{ "sName": "Audit_Title" },
{ "sName": "Audit_Create_Date" },
{ "sName": "Audit_Update_Date" },
{ "sName": "Audit_Status_Type" }
]
}).makeEditable({
sAddURL: "@Url.Action("CreateAudit", "Audit")",
sAddNewRowFormId: "createAuditForm",
sAddNewRowButtonId: "createAuditButton",

fnStartProcessingMode: function () {
$("#processing_message").dialog();
},
fnEndProcessingMode: function () {
$("#processing_message").dialog("close");
}
});
}
[/code]
This discussion has been closed.