ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: dnk on March 11, 2021, 09:47:39 pm
-
, { 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;
}
}
]
-
Please share a jsfiddle.
-
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 }