Skip to content

[DataGrid] Add SingleSticky selection mode#3150

Merged
dvoituron merged 1 commit intomicrosoft:devfrom
hml-coder:feature/single-sticky-3138
Jan 11, 2025
Merged

[DataGrid] Add SingleSticky selection mode#3150
dvoituron merged 1 commit intomicrosoft:devfrom
hml-coder:feature/single-sticky-3138

Conversation

@hml-coder
Copy link
Copy Markdown
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
Copy Markdown
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
@hml-coder
Copy link
Copy Markdown
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