I have validations set up for each column, but validation message is not showing if a cell is empty.
{
title: "Name",
editor: { type: 'textarea', attr: 'rows=2' },
width: 230,
dataIndx: "Name",
filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] },
editable: function (ui) {
if (ui.rowData['IsBaseEvent'] === true) {
return false;
} else {
return true;
}
},
validations: [{ type: 'minLen', value: 3, msg: "Required" }]
},
{
title: "Code",
width: 100,
dataIndx: "Code",
filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'], align: "center" },
editable: function (ui) {
if (ui.rowData['IsBaseEvent'] === true) {
return false;
} else {
return true;
}
},
validations: [{ type: 'minLen', value: 1, msg: "Required" }]
},
editModel: {
saveKey: $.ui.keyCode.ENTER,
clicksToEdit: 1
},
editor: {
select: true
},