Mui-datatables: How to remove ALL at dropdown filter

Created on 3 Feb 2020  路  5Comments  路  Source: gregnb/mui-datatables

How to remove ALL at dropdown filter

I want to choose one item.

image

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI |^4.8.0|
| MUI-datatables | ^2.14.0|
| React |^16.12.0|
| browser |chrome|
| etc | |

question wontfix

All 5 comments

"All" is the default when no filters have been selected. It means, show me all results. You pick the filter you want by selecting it from the dropdown. Does this answer the question?

@gabrielliwerant Thanks!

I know that "All" is the default value or empty value but I want to choose one dropdown Item unconditionally

Do I have to use 'custom' to do this?
OR
Using filterList: ['Franky Miles'],' props, I could see item 'ALL'

https://github.com/gregnb/mui-datatables/blob/master/examples/column-filters/index.js

drop down Sample

image

Sorry, trying to get a handle on what you're looking for. Are you asking for a way to not show the "All" option? If so, you would have to go full custom to do this. Removing "All" will not be a supported option because this is the way to return to the default view in the interface. Without it, users will not be able to return to the default.

@gabrielliwerant
Thanks your answer!

Are you asking for a way to not show the "All" option?

yes it is

Glad I could help, but sorry I won't help! ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aramkoukia picture aramkoukia  路  3Comments

kylane picture kylane  路  3Comments

geekashu picture geekashu  路  3Comments

mhmmdakbr picture mhmmdakbr  路  4Comments

demoreno picture demoreno  路  4Comments