I don’t have any snippet.
- you have N columns in a datatable
- you save the state of the datatable.
you edit the code
- Add a column in the array
Refresh the page.
- load the saved state
- hide the Column X (any) => works
- show the hidden column X => bug
I don’t have any snippet.
you edit the code
Refresh the page.
Here is the bug in the console
showColumn: invalid ID or already visible
Good day @Alexandre_Nicolas,
The State contains limited information about the existing columns (count, size, show/hidden state).
This behavior isn’t a bug. After adding a new column, the old state will not match the table configuration and you shouldn’t restore such a state.
You need to update the State while you adding a column. You can get the old State and add information about the new column to it: Code Snippet
Thanks a lot.
Webix can’t be beaten