Our blazing fast Grid component built with pure JavaScript


Post by SIM-LTD »

groupByTags - not effective

We are testing online your Grid component.
The column picker does not group the column by Tags

To reproduce this just go online: https://www.bryntum.com/examples/grid/basic/

And add the code below (see the screenshot):
.....
groupByTag : true,

columns : [
        {
          {
            text  : 'City',
            field : 'city',
            tags  : 'test',  // Add tags
            flex  : 1
        }           
We thought that the columns are grouped by tags in the context menu "column picker", but it does not work.
Is there anything we're missing or is this a bug?
Attachments
Capture d’écran 2019-11-07 à 21.07.10.png
Capture d’écran 2019-11-07 à 21.07.10.png (207.5 KiB) Viewed 2458 times

Post by mats »

Docs state it should be an array of Strings, try correcting your code? https://bryntum.com/docs/grid/#Grid/column/Column#config-tags

Post by SIM-LTD »

So how do we set this up ?

Post by mats »

Put groupByTag : true in the feature config. Docs: https://bryntum.com/docs/grid/#Grid/feature/ColumnPicker#config-groupByTag

Post by SIM-LTD »

Sorry, but please, read our post.... this is what we did.
And the Column picker does not perform the group by tags.
So is this a bug or is there anything else to do?

Post by mats »

Please read your own code in your screenshot, you put 'groupByTag' in the root Grid config. Not in the feature config.

Post by SIM-LTD »

Come on....please...
The previous screenshot was too short..
Look the complete screenshot NOW and you'll see that the 'groupByTag' in the root Grid config and not in the Feature config.
We know if we put this in the feature there will be a crash.

So what we do now?
Attachments
Capture d’écran 2019-11-08 à 15.21.26.png
Capture d’écran 2019-11-08 à 15.21.26.png (177.88 KiB) Viewed 2441 times
Capture d’écran 2019-11-08 à 15.18.57.png
Capture d’écran 2019-11-08 à 15.18.57.png (166.61 KiB) Viewed 2441 times

Post by mats »

Look the complete screenshot NOW and you'll see that the 'groupByTag' in the root Grid config and not in the Feature config.
Seems you misunderstood, what you write is the exact error you made. Put the groupByTag *in the feature config*.
features : {
    columnPicker : {
         groupByTag : true
    }
}

Post by SIM-LTD »

Sorry again but this is not working either

When setting per your advise
features : {
columnPicker : {
groupByTag : true
}
}
The contextMenu on the Head does not show up and the grid Crashes.
Attachments
Capture d’écran 2019-11-08 à 15.45.32.png
Capture d’écran 2019-11-08 à 15.45.32.png (293.75 KiB) Viewed 2439 times
Capture d’écran 2019-11-08 à 15.48.38.png
Capture d’écran 2019-11-08 à 15.48.38.png (60.79 KiB) Viewed 2439 times

Post by mats »

Well - did you put tags on your columns? The feature expects your columns to have a 'tags' array as you can see from docs (and the error message).

https://bryntum.com/docs/grid/#Grid/column/Column#config-tags

Post Reply