ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: limosys on March 06, 2018, 10:39:10 pm
-
Hi,
I have two questions:
1. I want to group items in PQSelect. I went through this https://paramquery.com/pro/api#option-column-editor but its not elaborate enough on how to implement it. Any code snippet will be
helpful.
2. How to exclude a column from pqselect but show it on pqgrid.
-
1. Please check pqSelect editor with grouped options in Shipping Region column
https://plnkr.co/edit/jixUib0yi5n5eQp1C6Ym?p=preview
{
title: "Shipping Region",
dataIndx: "ShipRegion",
editor: {
type: 'select',
valueIndx: "ShipRegion",
labelIndx: "ShipRegion",
groupIndx: "ShipCountry",
prepend: {
'': ''
},
//listeners: 'change',
options: function() {
var grid = this;
return grid.getData({
dataIndx: ["ShipCountry", "ShipRegion"]
});
},
init: function(ui) {
ui.$editor.pqSelect({
checkbox: true,
radio: true,
width: '100%'
});
}
}
},
2. Please elaborate your question with an example.