<kendo-grid-column field="[_id,role]" title="Action">
<ng-template kendoGridCellTemplate let-dataItem>
<!-- <span *ngIf="dataItem.ProductID == 1" class="badge badge-success">Online</span> -->
<button class="btn btn-success m-2" style="width: 70px;" (click)="openDialog(dataItem._id,dataItem.role)" > select Role</button>
</ng-template>
</kendo-grid-column>
here I want to get two values _id, role in function Can you please advice me how to I can get both value in function .
I have resolve this issues we can simply get two value like follows
<kendo-grid-column field="_id" title="Action">
<ng-template kendoGridCellTemplate let-dataItem>
<!-- <span *ngIf="dataItem.ProductID == 1" class="badge badge-success">Online</span> -->
<button class="btn btn-success m-2" style="width: 70px;" (click)="openDialog(dataItem._id,dataItem.role)" > select Role</button>
</ng-template>
</kendo-grid-column>