ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: twiddly on December 19, 2015, 09:07:49 pm

Title: pqselect with pq grid
Post by: twiddly on December 19, 2015, 09:07:49 pm
Is there an example of using pqselect with pq grid?
I want to use a multiselect with checkboxes in one of the grid cells.
I saw the demo for that with pqselect but looking at pq grid demos, the closest I can find is the autocomplete demo and it appears to use pq-ac-editor.
Is there a pq grid editor that uses pqselect?


Title: Re: pqselect with pq grid
Post by: paramvir on December 20, 2015, 11:08:28 pm
The following code converts ordinary select list editor in Shipping Via column into pqSelect in this demo: http://paramquery.com/demos/editing_custom

Code: [Select]
//add it in the grid options.
cellEditFocus: function(evt, ui){
if(ui.dataIndx == 'ShipVia'){
ui.$cell.find("select").pqSelect();
}
},


It can also be used as filter select list as in "Shipping Region" column in this demo:

http://paramquery.com/demos/filter_header_local