We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to filter custom columns?

Hello guys,

I have the filtering option ' allowFiltering="true" ' in the ej-grid-tag. I created a custom column, which I cannot filter. How can I filter custom columns? 

<e-column headerText="Fullname">
<ng-template e-template let-data>
<div *ngIf="data.vorname">
{{data.vorname}} {{data.nachname}}

1 Reply

VN Vignesh Natarajan Syncfusion Team February 25, 2019 11:22 AM UTC

Hi Cem, 
Thanks for using Syncfusion products.  
Query: "How can I filter custom columns? " 
From your query, we understand that you need to filter the template column. Operations like filtering, sorting, grouping will be based on the field value of column property. From your code example we could find that you have not defined the field property to template column. So we suggest you to define the field value to column. Based on the field value column will filtered or sorted etc. 
refer the below code example 
<e-column field="vorname" headerText="Fullname"> 
            <ng-template e-template let-data> 
              <div *ngIf="data.vorname"> 
                {{data.vorname}} {{data.nachname}} 
Refer our UG Documentation note section for your reference 
Please get back to us if you have further queries.   
Vignesh Natarajan 

Live Chat Icon For mobile
Up arrow icon