-
-
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
[DataGrid] Add a property to define the selection mode (row, cell or both) #9304
Comments
By default, the grid allows only rows to be selected, like you expect. The blue border you see highlights the focused cell. The cell selection mode is opt-in and only available on Premium. |
@m4theushw I'm not using the |
What you are describing is the focus of the cell, which is different from the selection Cell selection: Row selection: But if we are talking about the focus, this makes me think about #2429 |
@flaviendelangle Thank you for clarifying and yes, I'm referring to the cell focus. |
Thanks for the suggestion. When cell selection was implemented we reused the same styles from row selection. The only differentiation exists when selecting cells from a selected row. In the image below, 2 cells are selected, while the row is also selected, and the focus is on "Roy Hunter". About this issue, I'll close it. As we explained above, the blue outline is the focused cell and the proper cell selection is not enabled by default. For a prop to disable this outline, please subscribe to #2429. For now, to remove the outline you can follow the instructions from #2429 (comment) |
@m4theushw I did already test the suggestion in #2429, but does not really solve the problem. When disabling the cell focus as suggested, the grid does select the row when clicking in one of the cells as expected but it no longer moves when using the keyboard navigation. The idea of this SR is not to just remove the cell focus but to replace the cell selection with a row selection but keep the navigation with mouse, touch and keyboard intact. |
Duplicates
Latest version
Summary 💡
I understand that the data grid currently only allows to use a cell based selection mode.
It would be very helpful to also have an option to only select a complete row and not the individual cells.
Examples 🌈
No response
Motivation 🔦
In most use cases a grid is used to select one or multiple rows and the cell level is not really important.
Especially when using the keyboard to walk up and down in row selection mode the selected row should move up/down until the last visible row is reached and then start scrolling.
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: