Hi Martin,
Greetings from Syncfusion support.
Based on your query we found that you want to replace the Boolean column checkbox filter values. To achieve your requirement we suggest you to use filterItemTemplate property.
Please refer the below code example and sample for more information.
|
<div class="control-section">
<ejs-grid #grid [dataSource]='data' allowPaging='true' allowFiltering='true' [pageSettings]='pageSettings' [filterSettings]='filterSettings'>
<e-columns>
<e-column field='OrderID' headerText='Order ID' width='120' textAlign='Right'></e-column>
<e-column field='CustomerID' headerText='Customer Name' width='150'></e-column>
<e-column field='Verified' width='150'>
<ng-template #filterItemTemplate let-data>
<div>value of {{replaceValue(data)}}</div>
</ng-template>
</e-column>
<e-column field='ShipCountry' headerText='Ship Country' width='150'></e-column>
</e-columns>
</ejs-grid> |
|
export class AppComponent {
. . .
replaceValue(args) {
// here you can change and return the value
return args["Verified"];
}
ngOnInit(): void {
this.data = [
{
OrderID: 10248,
CustomerID: "VINET",
Numbers: 32532,
ShipCountry: "France",
Verified: !0
},
. . .
];
this.pageSettings = { pageCount: 5 };
this.filterSettings = { type: "CheckBox" };
}
} |
Please let us know, if you need further assistance.
Regards,
Manivel