ParamQuery grid support forum
General Category => ParamQuery Pro Evaluation Support => Topic started by: conditio on December 05, 2017, 03:42:23 pm
-
Hello,
i tryed to autoopen a select so the optionlist is directly shown in the editmode.
pqType: function (ui) {
return "select";
},
pqOptions: function (ui) {
return [
'R',
'F',
''
];
},
pqInit: function (ui) {
var $inp = ui.$editor.find('select');
$inp.prevObject.on('focus',function (e) {
this.pqSelect('open');
});
},
Thx for your help.
-
Could you please elaborate your question and share a jsfiddle.
-
http://jsfiddle.net/mmg0cn30/ (http://jsfiddle.net/mmg0cn30/)
I want that the column state shows all options when I click at it. not only the select element. the select element should expand automaticly.
-
Please use this code for auto open pqSelect editor in Shipping Via column in this example: https://paramquery.com/pro/demos/editing_custom
init: function (ui) {
var $ed = ui.$cell.find("select")
$ed.pqSelect();
setTimeout(function(){
$ed.pqSelect('open');
})
},
Hope it helps.