[PR #1834] [MERGED] RadzenDataGridHeaderCell to handle nullable types in ApplyFilter #2917

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1834
Author: @kerajel
Created: 12/4/2024
Status: Merged
Merged: 12/4/2024
Merged by: @enchev

Base: masterHead: kerajel/handle-nullable-types-in-header-cell


📝 Commits (3)

  • 033b23b RadzenDataGridHeaderCell to handle nullable types in ApplyFilter
  • 8066a15 code clean up
  • 03abffd code clean up

📊 Changes

1 file changed (+6 additions, -4 deletions)

View changed files

📝 Radzen.Blazor/RadzenDataGridHeaderCell.razor (+6 -4)

📄 Description

Convert.ChangeType is designed to work with non-nullable value types and will return null when trying to convert an empty string or a null value to a nullable type, which leads to a InvalidCastException if not handled correctly.


🔄 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/1834 **Author:** [@kerajel](https://github.com/kerajel) **Created:** 12/4/2024 **Status:** ✅ Merged **Merged:** 12/4/2024 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `kerajel/handle-nullable-types-in-header-cell` --- ### 📝 Commits (3) - [`033b23b`](https://github.com/radzenhq/radzen-blazor/commit/033b23b0a7eb661d44debca499ada4862265da53) RadzenDataGridHeaderCell to handle nullable types in ApplyFilter - [`8066a15`](https://github.com/radzenhq/radzen-blazor/commit/8066a15db8c82b8872ace6e372c20fa749e41e0e) code clean up - [`03abffd`](https://github.com/radzenhq/radzen-blazor/commit/03abffda4e4d64714dc49af795140f060338b02e) code clean up ### 📊 Changes **1 file changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenDataGridHeaderCell.razor` (+6 -4) </details> ### 📄 Description Convert.ChangeType is designed to work with non-nullable value types and will return null when trying to convert an empty string or a null value to a nullable type, which leads to a InvalidCastException if not handled correctly. --- <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:06 +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#2917