Hi Taylor,
Thanks for conducting Syncfusion support.
We have validated your query “Continuing the save process after AJAX validation” at our end.
By default, You can achieve your requirement using actionBegin event. Here we have to validate the required column value before saving.
If the changed value doesn’t meet your validation state, you have to call closeEdit() method instead of endEdit().
closeEdit() method used to destroy the edit form. If validation throws the success, changed value will be updated in dataSource.
Please refer to the below code example and sample.
@Html.EJS().Grid("DefaultPaging").ActionBegin("ActionBeginEvent") . . . ..Render()
function ActionBeginEvent(args) {
if (args.requestType == 'save') {
var gridObj = document.getElementsByClassName("e-grid")[0].ej2_instances[0];
if (args.data.CustomerID.length < 5) { // you can write validation condition here.....
args.cancel = true;
gridObj.closeEdit();
}
}
} |
Still the above sample and code block don’t meet your requirement please share the below details for further updates.
- Share which adaptor you are using in your application.
- Full code snippet
- Expecting output image
Regards,
Pavithra S.