-
Notifications
You must be signed in to change notification settings - Fork 377
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 OnCellClick and allow restricting selection to checkboxes #2160
Conversation
Yeah, you definitely need to revert the renaming first. We use that name because it is also used in the web component and we want to keep that (logical) link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert GridColumn
name change
Could you add some unit tests to |
I added some 👍 |
examples/Demo/Shared/Pages/DataGrid/Examples/DataGridMultiSelect.razor
Outdated
Show resolved
Hide resolved
The problem with this is that I would not see any way to implement #2130 since the row click is always triggered after the cell click. When clicking the checkbox, the clicked row would be selected but if |
Yes, that was my initial question. I haven't analyzed the problem. But it would be better to have this event in any case. If not, we'll get some "feedback" :-) I can look at it in a few days if you like, see if I have another idea. |
Maybe we could add a new parameter |
No. That's not ideal. We should find a solution to do that automatically. |
Hi, any news on this? 😅 |
I haven't had time yet :-( |
Normally you select only from the checkbox. the current behavior is not correct. If you want something different you use the envents on the row. |
for #2130 the solution is in the event. Call deselect all and select the current row. |
I definitely agree with you. However, this could be considered a breaking change by the repository owners. |
the solution might be to create a new selection column that behaves correctly. |
|
Other PR LGTM. Merged it and think we can close this one. |
Looks good to me, thank you! |
Pull Request
📖 Description
This PR adds an
OnCellClick
functionality toFluentDataGrid
and allows restricting the selection of rows to the checkboxes of the select column.🎫 Issues
This PR should allow for implementing the features requested in #2130 and #1952 (comment).
👩💻 Reviewer Notes
Since I renamedFluentDataGridCell.GridColumn
toFluentDataGridCell.ColumnIndex
(because I think this is more fitting), this PR technically contains a breaking change. If you don't want this change, I will revert it.✅ Checklist
General
Component-specific