Describe the bug
When creating a grid with a column list and the enableCheckboxSelector: true setting, the column with the Checkbox selector is displayed, but if you change the column list, it disappears.
Reproduction
Here is the code that displays the problem, after clicking the button Update columns, the list of columns changes, but the Checkbox Selector disappear
import { Component, signal } from '@angular/core';
import { GridOption, AngularSlickgridComponent } from 'angular-slickgrid';
@Component({
selector: 'app-test-grid',
imports: [AngularSlickgridComponent],
template: `
<div class="container-sm">
<button class="btn btn-secondary mb-2" (click)="updateColumns()">Update columns</button>
<angular-slickgrid gridId="g122" [options]="options" [columns]="columns()" [dataset]="rows()" />
</div>
`,
})
export class TestGridPageComponent {
protected readonly options: GridOption = {
gridWidth: '100%',
enableCheckboxSelector: true,
};
protected readonly columns = signal([
{ id: 'id', name: 'id', field: 'id' },
{ id: 'name', name: 'name', field: 'name' },
{ id: 'nameShort', name: 'short', field: 'nameShort' },
]);
protected readonly rows = signal([
{id: 1, name: 'One dog', nameShort: 'one'},
{id: 2, name: 'Two dogs', nameShort: 'two'}
]);
protected updateColumns() {
this.columns.update(() => ([
{ id: 'id', name: 'id', field: 'id' },
{ id: 'name', name: 'name', field: 'name' },
]));
}
}
Which Framework are you using?
Angular
Environment Info
| Executable | Version |
| ------------------- | ------- |
| (framework used) | Angular 19-22 |
| Slickgrid-Universal | 10.7.1 |
| TypeScript | 6.0.3 |
| Browser(s) | Chrome: 149.0.7827.54 |
| System OS | OS: Windows 10 10.0.19045 |
Validations
Describe the bug
When creating a grid with a column list and the
enableCheckboxSelector: truesetting, the column with the Checkbox selector is displayed, but if you change the column list, it disappears.Reproduction
Here is the code that displays the problem, after clicking the button
Update columns, the list of columns changes, but the Checkbox Selector disappearWhich Framework are you using?
Angular
Environment Info
Validations