Hi,
I have tried to implement checkboxes to Grid with auto generated columns.
By doing it like this:
this.tableService.model$.subscribe((x) => {
x.map((y) => (y['checkbox'] = false));
});
and :
if ((cols as any).field === 'checkbox')
{
cols['type'] = 'checkbox';
}
And I have defined the datasource as such.
[dataSource]="tableService.model$ | async"
But the unselect doesn't work and the "Select/Unselect All" doesn't update.