[PR #506] [MERGED] Add FilterCleared event to DataGrid to fire when filter is cleared #2206

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/506
Author: @glutio
Created: 7/1/2022
Status: Merged
Merged: 7/7/2022
Merged by: @enchev

Base: masterHead: master


📝 Commits (2)

  • 7c85db3 Add FilterCleared event to DataGrid to fire when filter is clered to allow custom logic to tell the difference between operator/value change and filter clear event. In my case it allows me to keep the operator even though it's reset to default in ClearFilter().
  • a4ae951 Merge branch 'radzenhq:master' into master

📊 Changes

2 files changed (+9 additions, -2 deletions)

View changed files

📝 Radzen.Blazor/RadzenDataGrid.razor.cs (+8 -1)
📝 Radzen.Blazor/RadzenDataGridFilterMenu.razor (+1 -1)

📄 Description

Add FilterCleared event to DataGrid to fire when filter is cleared to allow custom logic to tell the difference between operator/value change and filter clear event. In my case it allows me to keep the operator even though it's reset to default in ClearFilter().

It is potentially a breaking change since it now fires FilterCleared from the grid's implementation of the filter menu, so I don't have much hopes that you will approve this PR but submitting it just in case...


🔄 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/506 **Author:** [@glutio](https://github.com/glutio) **Created:** 7/1/2022 **Status:** ✅ Merged **Merged:** 7/7/2022 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`7c85db3`](https://github.com/radzenhq/radzen-blazor/commit/7c85db3048972ca0c062cf18567c9b25a0b5e59e) Add FilterCleared event to DataGrid to fire when filter is clered to allow custom logic to tell the difference between operator/value change and filter clear event. In my case it allows me to keep the operator even though it's reset to default in ClearFilter(). - [`a4ae951`](https://github.com/radzenhq/radzen-blazor/commit/a4ae951791a6e6ec087207776022759c159ef982) Merge branch 'radzenhq:master' into master ### 📊 Changes **2 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenDataGrid.razor.cs` (+8 -1) 📝 `Radzen.Blazor/RadzenDataGridFilterMenu.razor` (+1 -1) </details> ### 📄 Description Add FilterCleared event to DataGrid to fire when filter is cleared to allow custom logic to tell the difference between operator/value change and filter clear event. In my case it allows me to keep the operator even though it's reset to default in ClearFilter(). It is potentially a breaking change since it now fires FilterCleared from the grid's implementation of the filter menu, so I don't have much hopes that you will approve this PR but submitting it just in case... --- <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:45 +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#2206