Author Topic: pqselect with pq grid  (Read 2589 times)

twiddly

  • Newbie
  • *
  • Posts: 3
    • View Profile
pqselect with pq grid
« 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?



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: pqselect with pq grid
« Reply #1 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
« Last Edit: December 20, 2015, 11:11:32 pm by paramquery »