Our blazing fast Grid component built with pure JavaScript


Post by fcoca@certinia.com »

You need to select the header checkbox twice to see it as selected.

Selection mode config:

   selectionMode: {
        checkbox:{
          text: 'Choose',
          type: 'check',
          field: 'selectionColumn'
        },
	checkboxOnly: true,
        showCheckAll: true
    },

Demo: https://codepen.io/javicloud/pen/OJZOeOY

As you can see in the attached recording the offending property checkbox.field

Attachments
video1442925716.mp4
(829.8 KiB) Downloaded 19 times

Post by ghulam.ghous »

Hi fcoca,

Thanks for the report, created a ticket to fix it https://github.com/bryntum/support/issues/8356. You can subscribe to the ticket to keep track of updates.

Regards,
Ghous


Post by fcoca@certinia.com »

Thanks Ghous, any workaround meanwhile it is fixed?


Post by ghulam.ghous »

Not sure about the workaround, but hopefully the fix will be available in the next release. I have already opened a fix pr for this.


Post by fcoca@certinia.com »

Brilliant! Do you have any dates for the next release?

Regards
Javi


Post by ghulam.ghous »

We are planning to release tomorrow or in the coming week. If everything goes well it'll be available in this release. Otherwise you'll have to wait for the next release. We send a patch release almost every 2 to 3 weeks.


Post by ghulam.ghous »

Hi Fcoca,

I checked and it works fine when you have not set the field config in the selection mode. Is there a reason that you have used this config field : 'selectionColumn'?

The below code works just fine.

selectionMode : {
                checkbox : {
                    text  : 'Choose',
                    type  : 'check',
                },
                checkboxOnly : true,
                showCheckAll : true
            },

Regards,
Ghous


Post by fcoca@certinia.com »

Hi Ghous,

It is documented that field must be configured for CheckColumn
https://bryntum.com/products/grid/docs/api/Grid/column/CheckColumn

and we need it to access the column at run time using
https://bryntum.com/products/grid/docs/api/Grid/data/ColumnStore#function-get

Regards
Javi


Post by johan.isaksson »

Hi,

The checkbox selection column is not a fully normal CheckColumn. It is not supposed to have any field configured, because it is not linked to record data (it is linked to grid selection). We will clarify that in docs.

And to get access to it at runtime, you can use grid.columns.first (if you also have a RowNumberColumn, use grid.columns.getAt(1))

Best regards,
Johan Isaksson

Post by fcoca@certinia.com »

Hi Johan,

Thanks for the info.

We have lot of implementations that rely on the field config and it use to work in 5.11.1 version but after upgrading we are experiencing the described issue.

Can we expect to be fixed in the next release?

Regards


Post Reply