Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ticheng

Pages: [1]
1
I am using pqgrid v2.0.4 with pqselect. I have a function to resize the grid width when user change the browser size. The sample code is here: https://jsfiddle.net/kbqex9hz/23/

I hit a bug that when the pqselect is opened, if I resize the grid, the grid would hang and never come back. Can any one help how to fix it? Thanks.

2
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.

3
Thank you. It works fine.

4
I am using pqgrid v2.0.4. In my toolbar, I want to add a checkbox. When it is checked, it filters the result. When it is unchecked, it removes the filter. It works fine. However, I would also add some text beside it, and I tried something like this:

Code: [Select]
{
            type: "checkbox",
            label: "Show Active Only",
            icon: " ui-icon-search",
            listeners: [
                {
                    "change": function() {
                        console.log($(this).is(':checked'));
                    }
                }
            ]
        }
But this does not work. Would any one know how to add the label / text beside this checkbox?

Thanks,
Tim

5
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).

6
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/

Pages: [1]