material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Selection box in FilterRow

Open priemd opened this issue 7 years ago • 6 comments

Describe the bug Why is there a selection box in the filtering row? Maybe I'm missing something but can't see any value in selecting the filter row. I never noticed it but one of the first things that came up in front of my users today was 'why is there a selection box in the filtering row'. Ticky-Tacky but users will be users.

To Reproduce Open a table with filtering and selection enabled.

Expected behavior No checkbox in filter row. Screen Shot 2019-05-22 at 10 36 55 PMScreenshots* Additional context* I tried overriding EditRow setting selection={{Boolean(false}} but then all the valid filter cells just shifted out of place to the left:

Screen Shot 2019-05-22 at 10 18 39 PM *

Also tried setting filterCellStyle to 'display: "none"' but that just remove all filter cells accept for the selection cell.

priemd avatar May 23 '19 02:05 priemd

Hi @priemd,

If you set lookup for column it will use select instead of a textfield. But if you want to use textfield you can use render function of column instead of giving a lookup. Please check custom render feature on documentation.

mbrn avatar May 27 '19 04:05 mbrn

It’s not the actual filter component for columns I’m referring to... I’m wondering why there is a checkbox defaulted to display as the first column in the filter row as it doesn’t need to be there? No easy way to override either besides copy and paste source minus the line that slices the columns and adds the checkbox

priemd avatar May 29 '19 03:05 priemd

image He is referring to this checkbox. I think bug label is actually correct.

AntoniusGolly avatar Jul 07 '19 23:07 AntoniusGolly

@AntoniusGolly that is the correct 'select all' checkbox you have circled, what I was referring to has already been corrected. The issue was referring to a checkbox being in the filter row below the header which was useless. Issue should be closed just not sure what push fixed it, sorry.

priemd avatar Jul 08 '19 00:07 priemd

Alright. Thanks for correcting.

AntoniusGolly avatar Jul 08 '19 00:07 AntoniusGolly

actually looking at my screenshot it was already fixed, must have been a late night ;) I swear there was a checkbox at some point in the filter row. If not my bad, must have been seeing double.

priemd avatar Jul 08 '19 00:07 priemd