Author Topic: PQSelect multiselect grouping  (Read 1838 times)

limosys

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 4
    • View Profile
PQSelect multiselect grouping
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Re: PQSelect multiselect grouping
« Reply #1 on: March 07, 2018, 10:59:57 am »
1. Please check pqSelect editor with grouped options in Shipping Region column 

https://plnkr.co/edit/jixUib0yi5n5eQp1C6Ym?p=preview

Code: [Select]
    {
      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.