[PR #1999] [IMPROVEMENT] - Adding HeaderWhiteSpaceText and WhiteSpaceText properties to RadzenDataGridColumn. #3025

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

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/1999

State: closed
Merged: Yes


Enhancement: Add WhiteSpaceText Support to RadzenColumn

Description

This PR enhances the RadzenDataGridColumn component by introducing two new parameters:

/// <summary>
/// Gets or sets the header white space style.
/// </summary>
[Parameter]
public WhiteSpaceText HeaderWhiteSpaceText { get; set; } = WhiteSpaceText.Truncate;

/// <summary>
/// Gets or sets the white space style.
/// </summary>
[Parameter]
public WhiteSpaceText WhiteSpaceText { get; set; } = WhiteSpaceText.Truncate;

The WhiteSpaceText enum includes three options:

  • Wrap (rz-text-wrap): Enables text wrapping.
  • NoWrap (rz-text-nowrap): Prevents text wrapping.
  • Truncate (default behavior, similar to rz-text-truncate): The text will not wrap, and any overflowing content will be hidden with an ellipsis

This follows the suggestion from @yordanov in issue #929 and aligns with the typography settings available in Radzen Blazor:
🔗 Radzen Typography Options

Why this change?

Previously, RadzenColumn only supported truncation by default, limiting text display options. With this enhancement, developers can now control text behavior directly via component parameters instead of manually applying CSS classes.

Video Demonstration

To showcase the impact of this improvement, here is a short video demonstrating the changes:

https://github.com/user-attachments/assets/dd1a7c3a-686b-4e50-9f58-0bc334ba19bc

Backward Compatibility

The default behavior remains unchanged (Truncate), ensuring compatibility with existing applications.

Testing

Verified all three text formatting options in different scenarios.

Ensured that styles apply correctly without breaking existing behavior.

Looking forward to your feedback.

Best regards,
Pedro Constantino

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1999 **State:** closed **Merged:** Yes --- ## Enhancement: Add WhiteSpaceText Support to RadzenColumn ### Description This PR enhances the `RadzenDataGridColumn` component by introducing two new parameters: ```csharp /// <summary> /// Gets or sets the header white space style. /// </summary> [Parameter] public WhiteSpaceText HeaderWhiteSpaceText { get; set; } = WhiteSpaceText.Truncate; /// <summary> /// Gets or sets the white space style. /// </summary> [Parameter] public WhiteSpaceText WhiteSpaceText { get; set; } = WhiteSpaceText.Truncate; ``` The WhiteSpaceText enum includes three options: - Wrap (rz-text-wrap): Enables text wrapping. - NoWrap (rz-text-nowrap): Prevents text wrapping. - Truncate (default behavior, similar to rz-text-truncate): The text will not wrap, and any overflowing content will be hidden with an ellipsis This follows the suggestion from @yordanov in [issue #929](https://github.com/radzenhq/radzen-blazor/issues/929) and aligns with the typography settings available in Radzen Blazor: 🔗 [Radzen Typography Options](https://blazor.radzen.com/typography?theme=material3#text-wrap) ### Why this change? Previously, RadzenColumn only supported truncation by default, limiting text display options. With this enhancement, developers can now control text behavior directly via component parameters instead of manually applying CSS classes. ### Video Demonstration To showcase the impact of this improvement, here is a short video demonstrating the changes: https://github.com/user-attachments/assets/dd1a7c3a-686b-4e50-9f58-0bc334ba19bc ### Backward Compatibility The default behavior remains unchanged (Truncate), ensuring compatibility with existing applications. ### Testing Verified all three text formatting options in different scenarios. Ensured that styles apply correctly without breaking existing behavior. Looking forward to your feedback. Best regards, Pedro Constantino
claunia added the pull-request label 2026-01-29 18:21:33 +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#3025