2

I am using kendo UI grid in angular 6 application. In the kendo-grid-column, I want to be able to click EmployeeId and direct user to another component to show details. I am trying to use [routerLink] in anchor tag, but it is not acting as a clickable hyperlink. Also please check if my syntax is correct.

<kendo-grid [data]="view | async"
        [pageSize]="state.take"
        [skip]="state.skip"
        [sort]="state.sort"
        [filter]="state.filter"
        [sortable]="true"
        [pageable]="true"
        [filterable]="true"
        [height]="500"
        (dataStateChange)="dataStateChange($event)">
<kendo-grid-checkbox-column title="Select" width="75" showSelectAll="true"></kendo-grid-checkbox-column>
<kendo-grid-column field="EmployeeID" title="Employee ID" width="220">
    <a [routerLink]="['/contList']" [queryParams]="{'EmployeeID': {{EmployeeID}}}">
    </a>
</kendo-grid-column>
<kendo-grid-column field="EmployeeName" title="Employee Name" width="220">
</kendo-grid-column>

SilverFish
  • 1,014
  • 6
  • 28
  • 65

0 Answers0