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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Select All feature does not work on column filtering #1141
Comments
This comment has been minimized.
This comment has been minimized.
Regarding the pain of @Nate-Gage. The first note is that it can be reproduced with a single filter, so it's DataGrid related, not XGrid. I have seen this aspect slightly covered in https://ag-grid.com/javascript-grid/row-selection/#select-everything-or-just-filtered. By default, they have the select all checkbox ignore the filtering. You have to apply We have almost the same issue but for pagination in: #605. I would personally vote to optimize for avoiding surprises. Meaning, having the select all feature to be as close as possible to what's currently visible on-screen, and avoiding states. For instance:
We could imagine an opt-in prop to bypass the "Ask" part and behave like ag-Grid, with headerCheckboxSelectionFilteredOnly=false (default). |
We are also seeing this issue with a single filter in x-grid. It seems that the intermediate state lets you pick anything but the filter but not only the filter. so when we:
EDIT: |
Hey, I know you guys are busy but is there a timeline for this one? Out current workaround is telling then to filter the negative and then click the select all twice but it creates lots of confusion. Also doing the negative of multi column select is hard for 馃檭 |
@dtassone I have realized that it's currently impossible to know why
|
Hey guys. So I was looking into this from past few days. So as per my investigation, this stopped working from I was debugging and found that Example for 200 rows: I haven't found any solution yet, but I think the selector As per my research Reselect's why input selector is not running again: https://github.com/reduxjs/reselect#q-why-isnt-my-selector-recomputing-when-the-input-state-changes I am not 100% sure if cc: @oliviertassinari @m4theushw . Notifying Matheus since he worked on introducing Edit: Also Map was introduced in PR #1377 which was released during |
The issue with the state not being refreshed, comes from the memoization of |
Thanks @dtassone . It works. Seems like I was looking at the wrong place. |
I have updated #1618 (comment) to link this new instance of the problem. |
Removing |
#1879 (comment) I would think the simplest way to look at the select all checkbox as: If this PR does get broken down the select all on the current filter is our biggest issue. |
@matandro Reading the expected behavior, it appears that this issue has already been fixed indirectly by another PR. Do you still experience it using the latest version? |
The base behavior is good for our use. (We are currently one version behind the latest) At the end of the day, the counts and selection behave as expected based on the current filtered subset. 馃憤 |
Current Behavior 馃槸
Select All feature accurately selects active rows when only 1 filter is active. If a subsequent filter is added, Select All feature breaks.
Expected Behavior 馃
Select All feature should update total number of active rows when additional filters are added.
Steps to Reproduce 馃暪
Steps:
Context 馃敠
Your Environment 馃寧
System:
OS: Windows 10 10.0.18363
Binaries:
Node: 12.18.4 - ~\PMT-App\node_modules.bin\node.CMD
Yarn: Not Found
npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 88.0.4324.190
Edge: Spartan (44.18362.449.0)
npmPackages:
@material-ui/core: 4.11.0 => 4.11.0
@material-ui/icons: 4.11.2 => 4.11.2
@material-ui/lab: 4.0.0-alpha.56 => 4.0.0-alpha.56
@material-ui/pickers: 3.2.10
@material-ui/styles: 4.11.3
@material-ui/system: 4.11.3
@material-ui/types: 5.1.0
@material-ui/utils: 4.11.2
@material-ui/x-grid: 4.0.0-alpha.20 => 4.0.0-alpha.20
@material-ui/x-license: 4.0.0-alpha.20
@types/react: 17.0.0
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
Order id 馃挸
n/a
The text was updated successfully, but these errors were encountered: