[Bug report] problems with column group

I’ve encoutered two bugs with datatable columns groups:

  1. Column group is broken with webix 8.2.
    Just try the column group sample here: https://snippet.webix.com/c79aebd2
    “2018” group doesn’t start closed as expected (come columns show)
    Ok with webix 8.1 and before.

  2. Changing columns configuration whereas there is hidden columns scramble the columns of the datatable.

Steps to reproduce:

  1. Setup columns groups on datatable
  2. Load data into datatable
  3. Collapse a columns group
  4. Re-do a columns groups setup using table.config.columns=[....] ; table.refreshColumns();
  5. the columns are scrambled.

If all columns are visible before changing columns config, it’s work. (seems to only occur when some columns are hidden)

Demo here : https://snippet.webix.com/4kj9tb4r

Nota bene:

I’ve didn’t found a good way to retrieve all column ids / config of a datatable including hidden ones. The best way I’ve found for now is to use datatable.getState().order which contains all columns ids.

Hello @Fabien ,
I can confirm the issue. Thank you for your report. This looks like a regression, and will be fixed promptly. Unfortunately, there is no fully-fledged workaround for the time being, as some of the related logic is private and cannot be modified.

Ok, thanks for that.
I’ve found that using $$('datatable').refreshColumns([...]) to change all columns config work without need to show all columns before. (so it solve problem 2)