1
ParamQuery Pro Evaluation Support / Re: How I can use pqselect as custom editor?
« on: June 15, 2017, 05:02:44 pm »
Hotfix for JSON data case using cell render:
function RenderEditorSelectCol (ui) {
var ed = ui.column.editor;
var val = ui.rowData[ed.mapIndices[ed.valueIndx]];
for (var k = 0; k < ed.options.length; k++) {
if (ed.options[k][ed.valueIndx] == val) {
return { text: ed.options[k][ed.labelIndx] };
}
}
}
function RenderEditorSelectCol (ui) {
var ed = ui.column.editor;
var val = ui.rowData[ed.mapIndices[ed.valueIndx]];
for (var k = 0; k < ed.options.length; k++) {
if (ed.options[k][ed.valueIndx] == val) {
return { text: ed.options[k][ed.labelIndx] };
}
}
}