Description
I'm submitting a Bug report
Your Environment
Software | Version(s) |
---|---|
Angular | 6.1.6 |
Angular-Slickgrid | 2.17.5 |
TypeScript | 3.1.1 |
Describe the Bug
Adding or Removing Columns programmatically, after the Grid has been loaded with grid Option enableCheckboxSelector: true, removes the checkbox selector column from the grid.
On the other hand, setting the grid option enableCheckboxSelector: true programmatically will load the initial columns the grid has been loaded with (it will discard columns added programmatically)
Steps to Reproduce
Define a grid with 2 columns and enableCheckboxSelector: true
This will display a grid with the row selector checkbox and 2 columns
Programmatically remove one of the columns
This will remove the column AND the row selector (ISSUE #1)
From here, set the grid option enableCheckboxSelector: true programmatically.
This will show the row checkbox selector BUT will display the 2 original columns (ISSUE #2)
Expected Behavior
Adding or removing Columns programmatically should not affect or change the grid options definition or behavior.
Setting enableCheckboxSelector: true programmatically should not reset the columns defined to its original state. Current columns should remain
Current Behavior
Adding or removing Columns programmatically make the row checkboxes disappear.
Setting enableCheckboxSelector: true programmatically revert any changes made to the columns programmatiacally.
Possible Solution
Code Sample
https://angular-slickgrid-changing-columns-issue.stackblitz.io