With a form binded to a datatable; I managed to display server-side error messages for a form (using a custom response embedding errors for each field):
dp.attachEvent('onAfterSaveError', function(id, action, response) {
Object.keys(response.errors).forEach(function(field) {
$$('myform').markInvalid(field, response.errors[field][0] );
});
});
But (due to the binding ?) the table is updated before the response comes back.
What would be the best strategy to make the table updates after the (server-side) validation process ?