-
Notifications
You must be signed in to change notification settings - Fork 83
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
Grid - Allow sorting by unknown columns #8506
Comments
In case if you are using web-components/packages/grid/src/vaadin-grid-sort-mixin.js Lines 174 to 176 in 08798b8
In Flow counterpart we explicitly added an override to prevent the grid web component from automatically excluding columns from sorting when they get hidden - see vaadin/flow-components#5817 for some context. |
I am actually using flow but the hidden columns don't seem to affect the sorters. |
Thanks for clarification. If the column is hidden and never becomes visible, it doesn't get attached to the DOM at all, so there is no corresponding |
Thank you for the clarification. As the logic is already there somehow, is there a possible workaround for flow by, for example, setting the "hidden" attribute manualy without using setVisible? |
I'm afraid this won't be easy to workaround as web-components/packages/grid/src/vaadin-grid-column-mixin.js Lines 624 to 628 in 08798b8
|
Thanks for the clarification! |
Describe your motivation
In our application we have predefined (complex) sort orders.
As our grid is fully customizable not all sorted columns must be visible to the user.
Unfortunately in this case, the number of the sort indicator is wrong and therefor misleading.
Describe the solution you'd like
I would like to be able to somehow show the correct numbers in the sorting indicators.
Possible solutions are:
Describe alternatives you've considered
I already tried adding an invisible column for all sorted columns but unfortunately they don't seem to affect the sort indicators.
Additional context
No response
The text was updated successfully, but these errors were encountered: