[PR #1912] [MERGED] Add empty string support, culture based cast #2969

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1912
Author: @ivan-rosales-rieloff
Created: 1/16/2025
Status: Merged
Merged: 1/17/2025
Merged by: @enchev

Base: masterHead: master


📝 Commits (4)

  • 54d145f add is valid decimal value validation on ConvertToDecimal to avoid errors when decimal format is invalid, ie. double comma
  • de5096f Support culture to convert strings, add support to empty string as zero value
  • 7db778f Culture specific number conversion test
  • 9c713b9 Add Specific culture, and default cuture numeric test

📊 Changes

3 files changed (+115 additions, -8 deletions)

View changed files

📝 Radzen.Blazor.Tests/NumericTests.cs (+98 -3)
📝 Radzen.Blazor/Common.cs (+8 -2)
📝 Radzen.Blazor/RadzenNumeric.razor.cs (+9 -3)

📄 Description

Add empty string support and culture base type conversion, update test suite to use culture and validate string to number conversion and empty string to zero value conversion.

Use component culture parameter to cast value to decimal type.


🔄 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/1912 **Author:** [@ivan-rosales-rieloff](https://github.com/ivan-rosales-rieloff) **Created:** 1/16/2025 **Status:** ✅ Merged **Merged:** 1/17/2025 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`54d145f`](https://github.com/radzenhq/radzen-blazor/commit/54d145f40756c62fada0903d95244e3d5e731c7d) add is valid decimal value validation on ConvertToDecimal to avoid errors when decimal format is invalid, ie. double comma - [`de5096f`](https://github.com/radzenhq/radzen-blazor/commit/de5096f807580d5a7014f48e575b2008eef396e5) Support culture to convert strings, add support to empty string as zero value - [`7db778f`](https://github.com/radzenhq/radzen-blazor/commit/7db778f4fd26a54792bab72e83cec2dce428e495) Culture specific number conversion test - [`9c713b9`](https://github.com/radzenhq/radzen-blazor/commit/9c713b94e63b5d52e158953cdd8941555fd52108) Add Specific culture, and default cuture numeric test ### 📊 Changes **3 files changed** (+115 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor.Tests/NumericTests.cs` (+98 -3) 📝 `Radzen.Blazor/Common.cs` (+8 -2) 📝 `Radzen.Blazor/RadzenNumeric.razor.cs` (+9 -3) </details> ### 📄 Description Add empty string support and culture base type conversion, update test suite to use culture and validate string to number conversion and empty string to zero value conversion. Use component culture parameter to cast value to decimal type. --- <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:20 +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#2969