[PR #1854] [MERGED] Introduce ItemComparer parameter to DropDownBase, for IEqualityComparer support #2930

Open
opened 2026-01-29 18:21:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1854
Author: @pianomanjh
Created: 12/14/2024
Status: Merged
Merged: 12/16/2024
Merged by: @enchev

Base: masterHead: feature/dropdown-support-equalitycomparer


📝 Commits (2)

  • 51530a5 Introduce ItemComparer parameter to DropDownBase. Use HashSet to track selectedItems.
  • 35f7a8e include summary for ItemComparer Parameter

📊 Changes

7 files changed (+139 additions, -19 deletions)

View changed files

📝 Radzen.Blazor.Tests/DropDownTests.cs (+59 -1)
📝 Radzen.Blazor/DropDownBase.cs (+16 -13)
📝 Radzen.Blazor/RadzenDropDownDataGrid.razor (+1 -1)
📝 Radzen.Blazor/RadzenDropDownDataGrid.razor.cs (+1 -4)
📝 RadzenBlazorDemos/Models/Northwind/Product.cs (+28 -0)
RadzenBlazorDemos/Pages/DropDownMultipleItemComparer.razor (+27 -0)
📝 RadzenBlazorDemos/Pages/DropDownMultiplePage.razor (+7 -0)

📄 Description

This adds the ability for a user to explicitly control how Selected items in a bound collection are compared.
See Feature #1853

Additionally, performance for larger lists is improved by leveraging a HashSet instead of a List.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/1854 **Author:** [@pianomanjh](https://github.com/pianomanjh) **Created:** 12/14/2024 **Status:** ✅ Merged **Merged:** 12/16/2024 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `feature/dropdown-support-equalitycomparer` --- ### 📝 Commits (2) - [`51530a5`](https://github.com/radzenhq/radzen-blazor/commit/51530a5db4b8cf6c441a761fff88ffacad55c6ae) Introduce ItemComparer parameter to DropDownBase. Use HashSet to track selectedItems. - [`35f7a8e`](https://github.com/radzenhq/radzen-blazor/commit/35f7a8ea3700b9e973f060d3d6c740cf5cfc0108) include summary for ItemComparer Parameter ### 📊 Changes **7 files changed** (+139 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor.Tests/DropDownTests.cs` (+59 -1) 📝 `Radzen.Blazor/DropDownBase.cs` (+16 -13) 📝 `Radzen.Blazor/RadzenDropDownDataGrid.razor` (+1 -1) 📝 `Radzen.Blazor/RadzenDropDownDataGrid.razor.cs` (+1 -4) 📝 `RadzenBlazorDemos/Models/Northwind/Product.cs` (+28 -0) ➕ `RadzenBlazorDemos/Pages/DropDownMultipleItemComparer.razor` (+27 -0) 📝 `RadzenBlazorDemos/Pages/DropDownMultiplePage.razor` (+7 -0) </details> ### 📄 Description This adds the ability for a user to explicitly control how Selected items in a bound collection are compared. See Feature #1853 Additionally, performance for larger lists is improved by leveraging a HashSet instead of a List. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:21:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2930