-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGridPro] Filtering on the Header followup actions #9034
Comments
I think that we could break down the page into multiples, moving the Pro feature to its own page, not alienating the community. Plus the docs page is quite big, it would be more focused. Otherwise, I think to move to the bottom of the page. |
@oliviertassinari Yep that's a good idea, I've tried to do a similar thing in this PR: #9074 |
Screen.Recording.2023-05-31.at.16.23.48.movhttps://mui.com/x/react-data-grid/filtering/#header-filters 7.1. The data grid cell isn't blurred at the first click. I have to click twice
|
This one is interesting, the behavior that filters are applied on debounce and not on enter is something that users already experienced with the regular filter panel, not sure about other users but for me, the loading icon that appears during typing is a nice visual feedback that depicts the filters are being applied in the background, but yes we can test this with users and see what most of the users think about it 👍 If we change the behavior to apply the filter on Enter though, there's a nice way to stop differentiating between the cell and input field. When the user starts typing, the arrow keys are passed to the input, on pressing Enter, the filters are applied, and the focus is still on the input (cursor is blinking), but the arrow keys are now passed to the keyboard navigation (which again can pass to the input when user starts typing something). But I am not sure if this will look natural to the users 🤔 I'll try to do a demo to validate the idea. |
I must also say that I don't like Material Design inputs too much for this use case, from a UI/UX POV. First, the "Contains" label is bigger than the column title label. I would expect the opposite. Also the underlined input border right next to the bottom row border looks a bit off, imho. Puts a lot of emphasis/visual-weight on that region. I wonder if we wouldn't be better off by placing the filters inside the column title cell. It would also save some vertical space if we can avoid having 2 separate rows for the headers & filters. The filters in their focused state have a nice feel, but their unfocused state has the problems described above. |
That's a nice idea, we discussed it multiple times previously and after discussing the pros and cons, we decided to go with the separate header row. For example: #4934 (comment), #4934 (comment) I agree, in the current implementation, the state with no filter value doesn't look ideal, as there's an empty space on top and a prominent border near the bottom. Probably we can think about iterating the UI part a bit. Sidenote: For now, I merged the PR to deliver the changes done to the users, we can always follow up to re-iterate! |
This one supersedes #7760 with the action items left over.
inAnyOf
operator in header filters #9243density="compact"
#13048 :The text was updated successfully, but these errors were encountered: