I have grid with dynamic data and when i change colunms from column menu i want to write column state or selected columns on my console. Is it possible?
Here is example grid
<kendo-grid [data]="gridView" filterable="menu" [columnMenu]="true"
(filterChange)="filterChange($event)" [filter]="value" height="600">
<kendo-grid-column field="pump">
PUMP
</kendo-grid-column>
<kendo-grid-column field="nozzle" filter="number">
NOZZLE
</kendo-grid-column>
<kendo-grid-column field="item">
ITEM
</kendo-grid-column>
</kendo-grid>
Here is how to load data
this.service.getData().pipe(take(1)).subscribe(res => {
this.loading = false;
this.gridData = res.result.nozzles
this.gridView = {
data: this.gridData,
total: this.gridData.length,
};
})
Thanks