'How to i can access two values in one template in kendo UI in angular
<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 .
Solution 1:[1]
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>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
