Searching on Data Table component

cancel
Showing results for 
Search instead for 
Did you mean: 
sdandey
Member II

Searching on Data Table component

Our requirement is to implement a search functionality for the data-table.  Typing in some text on search-box should apply the filter with two-way binding and refresh data-table based on search-text.  How can I implement a filter functionality that I can apply on the DataTableAdapter.  Or is there any adf-search component available that can be applied on data-table?

2 Replies
cjose
Senior Member II

Re: Searching on Data Table component

Hi Santosh, are you looking for a search against the server or more like a filter feature on the data-table list on the client side?

sdandey
Member II

Re: Searching on Data Table component

Hi Ciju,

I'm looking over for a filter feature on the data-table list.  I'm thinking about implementing a pipe with ObjectDataTableAdapter, for e.g like below. 

I'm not sure we can implement pipe on the data input

<adf-datatable [data]="data | filter:filterText"
(row-click)="onRowClick($event)">

</adf-datatable>