I am using two kendo-grid in one page. For some divine reason the 2nd grid is not working. i am getting these errors enter image description here
my first grid looks like this, which works fine
<kendo-grid [data]="allData"
kendoGridSelectBy="id"
[selectedKeys]="mySelection"
[pageSize]="pageSize" [skip]="skip" [sort]="gridState.sort"
[pageable]="true"
[sortable]="true"
[reorderable]="true"
[resizable]="true"
[scrollable]="true"
[columnMenu]="{ filter: true }"
(edit)="onEdit($event)"
(remove)="onRemove($event)"
(add)="onAdd($event)">
and the 2nd one looks like this
<kendo-grid [data]="cardAssignment"
[pageable]="true"
[sortable]="true"
[reorderable]="true"
[resizable]="true"
[scrollable]="true">
service to populate the 2nd grid looks like this:
this.mealService.getCardAssignment(bookedByData).subscribe(
(resp: any) => {
console.log(resp);
this.guestsPerEmployee = resp;
},
(err: any) => {
//ON ERROR
},
() => {
//ON Success
this.loadCardAssignmentGrid();
}
);
mealService:
getCardAssignment(params: any) {
return this.api.post('v1/employees/GetCardAssignment', params);
}