|
// Button click function
onClick() {
// Check if Grid is in edit state(using ‘isEdit’ property) and if validation message is displayed(by checking if the edit form’s validate method returns ‘false’) in the Grid)
if (this.gridInst.isEdit && !this.gridInst.editModule.formObj.validate()) {
// Executes if the validation message is displayed for the columns
alert('Validation message is displayed');
}
} |