[PR #277] [CLOSED] Filter DataGrid by Multiselect ComboBox with LoadData event defined #2095

Closed
opened 2026-01-29 18:17:11 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/277
Author: @nstuller
Created: 11/12/2021
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • 5538547 Enabling a Column Filter Value to be an IEnumerable
  • f7357bd Remove setting that makes compile break
  • 67dd93b Merge branch 'radzenhq:master' into master
  • 1c7a96e Not able to compile Blazor project with webcompiler css command
  • 155327e Example multi-select datagrid filter
  • 6528680 Merge branch 'radzenhq:master' into master
  • 62f03db Fix webcompiler build error
  • a5675ce Fix error for blank Where filter clause
  • 64f3288 Have to force a SetParameters call otherwise the multi-select doesn't get it's parameters set until after the reload
  • 735bf7c Merge branch 'radzenhq:master' into master

📊 Changes

3 files changed (+69 additions, -14 deletions)

View changed files

📝 Radzen.Blazor/QueryableExtension.cs (+33 -8)
📝 Radzen.Blazor/Radzen.Blazor.csproj (+1 -1)
📝 RadzenBlazorDemos/Pages/DataGridColumnFilterTemplatePage.razor (+35 -5)

📄 Description

This block of code (or something similar) needs to be added to the QueryableExtension file to properly handle a multi-select filter. I have seen sample code for multi-select dropdowns filtering data grids, but they do not work. This is because the FilterValue is stored in an IEnumerable but there is nothing in QueryableExtension that handles that in the ToFilterString method. I was able to get my scenario to work by using this code.

This code works with a LoadData event handler that is used to appropriately filter the grid items by the filter string generated across all columns.


🔄 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/277 **Author:** [@nstuller](https://github.com/nstuller) **Created:** 11/12/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`5538547`](https://github.com/radzenhq/radzen-blazor/commit/55385472428031318c9cab8f6594a4d02d4f7e38) Enabling a Column Filter Value to be an IEnumerable<string> - [`f7357bd`](https://github.com/radzenhq/radzen-blazor/commit/f7357bdb6a79a2c9044ca2276d183beaebc30aca) Remove setting that makes compile break - [`67dd93b`](https://github.com/radzenhq/radzen-blazor/commit/67dd93bf0bc0684ae81f78baab769be5759ed028) Merge branch 'radzenhq:master' into master - [`1c7a96e`](https://github.com/radzenhq/radzen-blazor/commit/1c7a96e59bd2d351845f78000cb5d9c7609e86d8) Not able to compile Blazor project with webcompiler css command - [`155327e`](https://github.com/radzenhq/radzen-blazor/commit/155327edcec647ae8303ac116715b5977f728044) Example multi-select datagrid filter - [`6528680`](https://github.com/radzenhq/radzen-blazor/commit/6528680930c6307a12becd272710fc2dac0c38e1) Merge branch 'radzenhq:master' into master - [`62f03db`](https://github.com/radzenhq/radzen-blazor/commit/62f03db0c0c8a1529a0c2b9436f20557f24a191d) Fix webcompiler build error - [`a5675ce`](https://github.com/radzenhq/radzen-blazor/commit/a5675ce8e14e42cb211f481f2f4f7500add2cabb) Fix error for blank Where filter clause - [`64f3288`](https://github.com/radzenhq/radzen-blazor/commit/64f3288061999da2c8258131a051241a106bd157) Have to force a SetParameters call otherwise the multi-select doesn't get it's parameters set until after the reload - [`735bf7c`](https://github.com/radzenhq/radzen-blazor/commit/735bf7c0f2ccbf36599d714a4ef52c857d574a54) Merge branch 'radzenhq:master' into master ### 📊 Changes **3 files changed** (+69 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/QueryableExtension.cs` (+33 -8) 📝 `Radzen.Blazor/Radzen.Blazor.csproj` (+1 -1) 📝 `RadzenBlazorDemos/Pages/DataGridColumnFilterTemplatePage.razor` (+35 -5) </details> ### 📄 Description This block of code (or something similar) needs to be added to the QueryableExtension file to properly handle a multi-select filter. I have seen sample code for multi-select dropdowns filtering data grids, but they do not work. This is because the FilterValue is stored in an IEnumerable<string> but there is nothing in QueryableExtension that handles that in the ToFilterString method. I was able to get my scenario to work by using this code. This code works with a LoadData event handler that is used to appropriately filter the grid items by the filter string generated across all columns. --- <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:17:11 +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#2095