using plugin RowEditing on a grid how to display a custom Error Message on the ‘validateedit’ when i cancel the validation ?
validateedit : function(editor, e) {
if (condition) {
e.cancel = true;
// how to add an error message to a field
}
}
Just use the selectors and methods associated with the Form and Field
editor.editor.getForm().findField('fieldName').markInvalid('Message here');