ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: ticheng on February 03, 2017, 03:12:29 pm

Title: Fail to use pqselect in pqgrid 2.2.0
Post by: ticheng 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/
Title: Re: Fail to use pqselect in pqgrid 2.2.0
Post by: ticheng 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).
Title: Re: Fail to use pqselect in pqgrid 2.2.0
Post by: Roaming 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
        });
      }
    }
}
Title: Re: Fail to use pqselect in pqgrid 2.2.0
Post by: ticheng 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.