ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: noctrona on August 06, 2014, 02:52:37 pm
-
Hi team,
I have a toolbar on my pggrid, and on this toolbar I add a picklist. Now I have a demand, I hope I can select muitl records in this picklist. So I want to know whether we can support this function? Or we can set a mutil-picklist.
The following is my code:
toolbar: {
items: [
{ type: '<span>Please choose which column you want to hide: </span>' },
{ type: 'select', cls: 'sl_dataIndx',
options: function (ui) {
var CM = ui.colModel,
options = [''];
for (var i = 0; i < CM.length; i++) {
options.push(CM[i].title);
}
return options;
},
listeners: [
{
change: function (evt) {
//alert($(this).val());
}
}
]
},
]
}
Thank you!
-
It can be simply done by adding properties
attr: "multiple", style: "height:100px;"
in the select item object.
-
It can be simply done by adding property
attr: "multiple"
in the select item object.
Hi,
Thanks for your replay!
I add this attribution on my code, and the picklist changed, but is that possible to change the picklist height? When I add this attribution the picklist change to as a area but still very narrow.
Thank you!
-
It can be simply done by adding properties
attr: "multiple", style: "height:100px;"
in the select item object.
I got it.
Thank you!