Author Topic: freezeCols option not working properly  (Read 5052 times)

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
freezeCols option not working properly
« 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();
                        }
                    },

« Last Edit: April 20, 2017, 10:30:06 pm by paramquery »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: freezeCols option not working properly
« Reply #1 on: April 19, 2017, 10:09:31 pm »
I'm unable to reproduce the issue.

Could you please share a jsfiddle.

Thanks
« Last Edit: April 19, 2017, 10:17:30 pm by paramquery »

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
Re: freezeCols option not working properly
« Reply #2 on: April 20, 2017, 10:16:27 pm »
ok. I will do that. can you please remove my screen shot.

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
Re: freezeCols option not working properly
« Reply #3 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: freezeCols option not working properly
« Reply #4 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.

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
Re: freezeCols option not working properly
« Reply #5 on: May 02, 2017, 12:23:24 am »
Thanks. What is timeline that we are looking at?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: freezeCols option not working properly
« Reply #6 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?

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
Re: freezeCols option not working properly
« Reply #7 on: May 03, 2017, 12:04:38 am »
Great! That worked. Thanks for addressing this quickly.  :)