General Category > Help for ParamQuery Grid (free version)
Validations in columns not working.. Help me please!
(1/1)
dnk:
, { title: "Begin", width: "20%", dataType: "string", dataIndx: "begin",
editor: {
type: "select",
valueIndx: "id",
labelIndx: "text",
mapIndices: { id: "beginMonthID", text: "begin"},
options: [],
init: function (ui) {
ui.$cell.find("select").pqSelect();
}
}
, validations: [
{ type: 'minLen', value: 1, msg: "Required"}
,{
type: function(ui) {
debugger; // not go in this line
let value = ui.value,
checked = false;
if (value === null || value.len === 0)
{
ui.message = "Сould not be restricted empty value !"
}
else
{
checked = true;
}
return checked;
}
}
]
paramvir:
Please share a jsfiddle.
dnk:
Solved! but....
This not worked - , editModel: { clicksToEdit: 1, saveKey: $.ui.keyCode.ENTER, uponSave: 'next' }
this worked - , editModel: { clicksToEdit: 1, saveKey: $.ui.keyCode.ENTER, uponSave: 'next',
onBlur: 'validate', allowInvalid: false, invalidClass: 'pq-cell-red-tr pq-has-tooltip', warnClass: 'pq-cell-blue-tr pq-has-tooltip',
validate: true }
Navigation
[0] Message Index
Go to full version