Skip to content
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 SingleSticky selection mode #3150

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

hml-coder
Copy link
Contributor

@hml-coder hml-coder commented Jan 10, 2025

Pull Request

πŸ“– Description

Added SingleSticky selection mode to FluentDataGrid to retain selection when the same row is clicked again.

🎫 Issues

Fix #3138

πŸ‘©β€πŸ’» Reviewer Notes

πŸ“‘ Test Plan

Duplicated all tests for Single selection mode.

βœ… Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • [] I have validated the Unit Tests for an existing component

⏭ Next Steps

@hml-coder
Copy link
Contributor Author

@microsoft-github-policy-service agree

@hml-coder hml-coder changed the title [DataGrid] Add SingleSticky seletion mode [DataGrid] Add SingleSticky selection mode Jan 10, 2025
@dvoituron dvoituron merged commit 2d268e9 into microsoft:dev Jan 11, 2025
4 checks passed
@hml-coder
Copy link
Contributor Author

hml-coder commented Jan 11, 2025

Thanks @vnbaaij and @dvoituron for approving this. I'm porting vb6, winforms and wpf apps to Blazor and this was logged as a bug internally because the datagrid selections were being lost.

Is there anything I need to correct because there a "failed" indicator on the main project page?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add a parameter to SelectColumn to keep the row selected on repeat clicks in Single mode.
3 participants