ParamQuery grid support forum

General Category => Bug Report => Topic started by: kshipra on April 19, 2017, 09:53:14 pm

Title: freezeCols option not working properly
Post by: kshipra on April 19, 2017, 09:53:14 pm
On dynamically setting freeze cols to 3 the grid columns disappear. When user scrolls the rest of columns on grid appear except last 2. There are 34 columns and 32 are selected. when freezing columns.

options on grid are as follows:
 selectionModel: { type: 'cell' },
            dataModel: dataModel,
            //showBottom: true,
            fillHandle: "all",
            height: 650,
            width: "95%",
            virtualX: true,
            virtualY: true,
            showTitle: true,
            resizable: true,
            collapsible: false,
            showHeader: true,
            columnBorders: true,
            wrap: false,
            rowBorders: false,
            freezeRows: 0,
            numberCell: { show: true },
            trackModel: { on: true },
            editor: {
                select: true
            },


   {
                        type: 'select',
                        label: '# frozen columns: ',
                        options: [0, 1, 2, 3, 4, 5],
                        listener: function(evt) {
                           
                            this.option("freezeCols", $(evt.target).val());
                            this.refresh();
                        }
                    },

Title: Re: freezeCols option not working properly
Post by: paramvir on April 19, 2017, 10:09:31 pm
I'm unable to reproduce the issue.

Could you please share a jsfiddle.

Thanks
Title: Re: freezeCols option not working properly
Post by: kshipra on April 20, 2017, 10:16:27 pm
ok. I will do that. can you please remove my screen shot.
Title: Re: freezeCols option not working properly
Post by: kshipra on April 28, 2017, 12:13:58 am
I have attached html file with grid and sample data in it that is having same issue.
Title: Re: freezeCols option not working properly
Post by: paramvir on May 01, 2017, 08:59:12 am
yes the issue is reproducible. It happens when there are hidden columns among the frozen columns.

I'm moving it the bug log, would let you know once the fix or a patch is available.
Title: Re: freezeCols option not working properly
Post by: kshipra on May 02, 2017, 12:23:24 am
Thanks. What is timeline that we are looking at?
Title: Re: freezeCols option not working properly
Post by: paramvir on May 02, 2017, 06:17:54 pm
Turns out the issue is resolvable by just refreshing the colModel.

Code: [Select]
this.option("freezeCols", $(evt.target).val());
this.refreshCM();
this.refresh();

Please let know whether it fixes issue at your end?
Title: Re: freezeCols option not working properly
Post by: kshipra on May 03, 2017, 12:04:38 am
Great! That worked. Thanks for addressing this quickly.  :)