Author Topic: Fail to use pqselect in pqgrid 2.2.0  (Read 2835 times)

ticheng

  • Newbie
  • *
  • Posts: 6
    • View Profile
Fail to use pqselect in pqgrid 2.2.0
« on: February 03, 2017, 03:12:29 pm »
I upgraded my pqgrid from v2.0.4 to 2.20, and I tried to use pqselect as an editor of one of the dropdown column. However, I failed to select new values.  Please suggest what I can do to fix it. Thank you.

Code: [Select]
{
    title: 'Agree?',
    dataIndx: "Agree",
    editor: {
    type: 'select',
        options: [{'Yes': 'Yes'}, {'No':'No'}],
        init: function(ui){
      ui.$cell.find('select').pqSelect({
        deselect: false,
          search: false
        });
      }
    }
}

My test code is here: https://jsfiddle.net/kbqex9hz/17/
« Last Edit: February 03, 2017, 03:23:52 pm by ticheng »

ticheng

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Fail to use pqselect in pqgrid 2.2.0
« Reply #1 on: February 07, 2017, 09:44:45 am »
From my test, pqgrid 2.1 have the same problem too.

Anyone have a solution or workaround?
I need the pqselect controls work fine, and the editing data remains when user scroll the grid (the data would rollback in pqgrid 2.0.4).

Roaming

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Fail to use pqselect in pqgrid 2.2.0
« Reply #2 on: April 17, 2017, 03:15:09 pm »
like this?
Code: [Select]
{
title: 'Agree?',
    dataIndx: "Agree",
    editor: {
    type: 'select',
      options: [{'Yes': 'Yes'}, {'No':'No'}],
      init: function(ui){
      ui.pqSelect({
        deselect: false,
          search: false
        });
      }
    }
}

ticheng

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Fail to use pqselect in pqgrid 2.2.0
« Reply #3 on: May 04, 2017, 01:04:26 pm »
like this?
Code: [Select]
{
title: 'Agree?',
    dataIndx: "Agree",
    editor: {
    type: 'select',
      options: [{'Yes': 'Yes'}, {'No':'No'}],
      init: function(ui){
      ui.pqSelect({
        deselect: false,
          search: false
        });
      }
    }
}

It works fine! Thank you very much.