Topic: Datatable search by column

stokkup2313 priority asked 2 years ago


Expected behavior Trying to filter my data table by multiple columns. For example i have a data-table with columns owner_name, product, color, size and location

I want to search first the owner_name (say i get 1000 after i search for Bob), then i want to reduce my results based on product ( say i enter tshirts and thus results reduces to 100) then I may want to shirt by the color (say i enter white and results reduce to 10). Filter by columns similar to how material does : https://material-table-core.com/demos/filter/custom-filter/

Actual behavior only has an advanced search that does not have per column

Resources (screenshots, code snippets etc.)


Arkadiusz Idzikowski staff answered 2 years ago


@stokkup2313 Such a feature is not available in our data table component. You can only search for a specific value in multiple columns using a similar approach as in our 'advanced search' example:

https://mdbootstrap.com/docs/b5/angular/data/datatables/#section-advanced-search


stokkup2313 priority commented 2 years ago

is this something that will be added because I am sure I'm not the only one that benefits from it. It's available in material.


Arkadiusz Idzikowski staff commented 2 years ago

@stokkup2313 I can't promise anything yet but I added this feature to our nice-to-have list and we will definitely discuss that with the team.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 2.0.0
  • Device: All
  • Browser: Chrome
  • OS: All
  • Provided sample code: No
  • Provided link: Yes