Hello,
I am working to add a custom validation rule for a column. When I have it set to warning: false; it will show the error message like it should. however, when I change it to a warning validation, i only get the blue icon in the top right corner and no message. In the documentation it states that the message will appear for warnings and non warnings.
Below is the code I am using.
validations: [
{
type: function(ui) {
var values = $('#invoice-detail-grid').pqGrid('option', 'dataModel.data');
for (var i = 0; i < values.length; i++) {
if (( values[ui.column.dataIndx] ===ui.value) &&
(values['AnotherColumn'] === ui.rowData.AnotherColumn) &&
(values['Testing'] === ui.rowData.Testing) &&
(values['ID'] !== ui.rowData.ID)) {
ui.msg = 'Some Error Message';
return false;
}
}
return true;
},
warn: true
}
]
Thanks!