Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Grid filtering for a computed value
posted

Using Igniteui-angular 7.3.15

My scenario: I have 2 date columns that I want to provide a diff between.  I thought I would just utilize an igxCell template and reference the dates from the rowData of the cell reference I have in place.  My markup looks like this:
<igx-column [dataType]="'number'" header="Custom" [resizable]="true">
  <ng-template igxCell let-cell="cell">
    <span>{{ getCalculatedValue(cell) }}</span>
</ng-template>
</igx-column>

This works and the grid renders the value retrieved from getCalculatedValue.  However, the filter does not work for it.  I have dug around in the docs but have yet to find anything pertaining to how to accomplish this.

Thanks!