Page 1 of 1

Table Row Editing and validation before Save

Posted: 10 Nov 2022, 20:50
by vega3000
In the documentation for Row Editing Table, it says " Note that pSaveEditableRow only switches the row to back view mode when there are no validation errors".

How to stay on editing mode if my something is invalid ? I don't see anything for validation errors.
Example :

Code: Select all

onRowEditSave(model: MyModel) {
if(!model.validate()) {
 // STAY IN EDITING MODE; I don't want to close the editing mode
}
}
Tx