[PR #1076] RadzenDataGridColumn: handle non-px widths of frozen columns #2503

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

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

State: closed
Merged: Yes


Before this change, when you set the width of a frozen column using an unit other than px (e.g. 5rem or var(--my-width)) then it will be converted to 200px while calculating how far from the left side a frozen column should be. Here's an example result (in a demo, I've set the first column width to 5rem):
image

After my change:
image

If there are more frozen columns on the left, then the function creates a calc(w1 + w2 + w3…) css expression.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1076 **State:** closed **Merged:** Yes --- Before this change, when you set the width of a frozen column using an unit other than px (e.g. 5rem or var(--my-width)) then it will be converted to 200px while calculating how far from the left side a frozen column should be. Here's an example result (in a [demo](https://blazor.radzen.com/datagrid-frozen-columns), I've set the first column width to 5rem): ![image](https://github.com/radzenhq/radzen-blazor/assets/44393502/3a216d76-9cb0-46ec-b84c-85400b3a91e6) After my change: ![image](https://github.com/radzenhq/radzen-blazor/assets/44393502/91e58382-9d05-438d-8e45-894e3f3079a5) If there are more frozen columns on the left, then the function creates a calc(w1 + w2 + w3…) css expression.
claunia added the pull-request label 2026-01-29 18:19:09 +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#2503