+ Start a Discussion
venkat bojjavenkat bojja 

Columns Filter on DataTable in Lightning Web Components

Hi Team,
I  have requirement...
On loaded data in datatable i need to filter the columns data with search box. Based on any column we enter the text in search box the relavant record need to display.I need this in LWC(Lightning Web Components.
Thanks in advance...

Thanks & Regards,
Venkateswara Rao B.
Best Answer chosen by venkat bojja
SwethaSwetha (Salesforce Developers) 
HI Venkat,

The approach mentioned in https://salesforce.stackexchange.com/questions/306284/how-to-filter-data-in-datatable-lwc-based-on-the-input-in-search-bar is for a single column. You can apply the logic for multiple columns

Check the Playground (https://developer.salesforce.com/docs/component-library/tools/playground/ecxNdhzSt/1/edit) for a preview

Related: https://salesforce.stackexchange.com/questions/302530/lwc-lightning-datatable-search


Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you