Hi,
Assume I have a datasource with ID and Name fields. I display the Name but the main field is ID. I manage to show the right Name and get the ID with a combobox in Edit and Add mode. But how can I fix the filter for Name?
<kendo-grid-column field=
"ID"
title=
"Begrepp"
>
<ng-template kendoGridCellTemplate let-dataItem>
{{dataItem.Name}}
</ng-template>
<ng-template kendoGridEditTemplate let-dataItem=
"dataItem"
let-column=
"column"
let-formGroup=
"formGroup"
let-isNew=
"isNew"
>
<kendo-combobox [valuePrimitive]=
"true"
[formControl]=
"formGroup.get(column.field)"
[data]=
"personBegreppData"
textField=
"Name"
valueField=
"ID"
[placeholder]=
"dataItem.Name"
(filterChange)=
"handleACFilter($event)"
[filterable]=
"true"
>
</kendo-combobox>
</ng-template>
<ng-template kendoGridFilterCellTemplate let-filter let-column=
"column"
>
<kendo-grid-string-filter-cell [showOperators]=
"false"
[column]=
"column"
[filter]=
"state.filter"
>
</kendo-grid-string-filter-cell>
</ng-template>
</kendo-grid-column>