I'm working on an Angular app using the Kendo grid control. How do I bind to properties of the current element?
For example, I have a list of users. I can list them out pretty simply with this code:
<kendo-grid [data]="Users" style="height: 100%">
<kendo-grid-column title="Email" field="Email"></kendo-grid-column>
<kendo-grid-column title="Username" field="Username"></kendo-grid-column>
<kendo-grid-column title="Permissions" field="Permissions"></kendo-grid-column>
</kendo-grid>
However, I also want to add button columns to do things like edit and delete the user. There are also places I'm using this that I would like to have a button column that routes to a detail page for that object. In that case I would need the id of the object to add to the route, however I don't see a way to get the object. I want to do something like this:
<kendo-grid-column>
<ng-template kendoGridCellTemplate>
<button routerLink="/knprojects/{{project.id}}">View Notes</button>
</ng-template>
</kendo-grid-column>
The problem is that I don't have a 'project' object because there is not an *ngFor iterating items...
Sorry if it's a simple question but this is the first time I'm using their grid and first real Angular app so trying to figure it out.