I have multiple fields on my grid. Here is the code
<igx-column [field]="'IndustrySector'" dataType="string" [sortable]="true">
<!-- I need to search with this two below fields-->
<ng-template igxCell let-cell="cell">
<div class="row">
<div>
<b> {{ cell.row.data.IndustrySector }} </b>
</div>
<div>
{{ cell.row.data.IndustryGroup }}
</div>
</div>
</ng-template>
</igx-column>
<!-- <igx-column [field]="'IndustryGroup'" dataType="string" [sortable]="true"></igx-column> -->
<igx-column
[field]="'SectorType'"
dataType="string"
[sortable]="true"
></igx-column>
I need to perform the search operations. It only works with whichever name I mention in [field]="'IndustrySector.'" It's not able to search with a second value like IndustryGroup.
Is there any solution for multiple names being in one igx column? Then, What should be the best approach for searching?
You need to use the
igxTextHighlightto do this, please find below a working example for your reference!Note: It does not work perfectly, but its possible to do.
html
ts
stackblitz
References: