ParamQuery grid support forum
General Category => Bug Report => Topic started by: jplevene on October 21, 2024, 04:24:30 am
-
Setting the filter on a remote data source. All other filters are fine as none use "title". If I hint out "title" there is no error.
{dataIndx:"DEPOT", width:80, halign:"center", title:"Depot",
filter:{
crules: [{condition:"range"}],
selectGridObj: function(ui) {
// Change the label render
ui.obj.colModel[0].renderLabel = function(ui){ return ui["rowData"]["NAME"]; };
ui.obj.colModel[0].sortable = false;
},
options: [
{DEPOT: 1, NAME: 'London Depot'},
{DEPOT: 3, NAME: "▶ London sub depot"},
{DEPOT: 2, NAME: 'Birmingham'}
],
gridOptions: {
stripeRows: false, // No stripey rows
numberCell: {show: false}, // Hide the number column
filterModel: {header: false},// Hide search box in the dropdown
selectionModel: {type:null, column:false} // Disable row selection
},
title: function(sel, ui){ return !sel ? "" : "["+sel.length+"]";}
}},
Causes the attached error.
All displays and seems to work fine, except there is an error in the console.
Thanks for the feature by the way, really good.
-
In the non compressed code, the error is triggered on line 888:
evt.target = $ele[0];
Changing the line to below fixes it:
evt.target = $($ele)[0];
-
Please share a jsfiddle.
-
Tried this but no success on the error
https://jsfiddle.net/v0418zyj/3/