cancel
Showing results for 
Search instead for 
Did you mean: 

Searching on Data Table component

sdandey
Champ in-the-making
Champ in-the-making

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 2

cjose
Elite Collaborator
Elite Collaborator

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
Champ in-the-making
Champ in-the-making

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>