RowGroup disabled by default, but enabled by button/link

RowGroup disabled by default, but enabled by button/link

laranicolalaranicola Posts: 2Questions: 2Answers: 0

Hi,
I need to group rows based on the columns.
I found this example below (based on RowGroup - Data source change event) which is basically what I need and it's working fine.

https://www.echecs-draguignan.fr/assets/DataTables-1.10.15/extensions/RowGroup/examples/initialisation/event.html

In this example, the first time you load the table page, the rows are already grouped and you can change the 'group column' by clicking one of the links.

Here is my problem. I just want that the first time the table page loads, the rows are not grouped.
Only when the user clicks on one of the column links, the RowGroup feature is, let's say, "switched on".

Let me first say that I'm still learning JS..I tried various things like rowGroup().disable(),
drawCallback(), order.fixed(), ...

Can you help me?
Thanks so much.

Answers

This discussion has been closed.