[PR #1970] [IMPROVEMENT] - Adding new option to disable radzen link, css and test added. #3002

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

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

State: closed
Merged: Yes


Enhancement: Disabled Property for RadzenLink

I've added a new feature to the RadzenLink component, allowing it to be disabled, similar to the disabled property in other components. This enhancement provides better control over link interactions, improving usability in scenarios where navigation should be temporarily restricted.

Example:
<RadzenLink Icon="block" Disabled="true" Path="button" Text="This link is disabled and cannot be accessed" />

There's already an open issue for this enhancement: #1870.

Added a new bool Disabled property to the RadzenLink component. When set to true, it applies the rz-link-disabled class, reducing opacity by 50% and disabling click events. When re-enabled, all functionalities return to normal, as demonstrated in the video below.

https://github.com/user-attachments/assets/7e94e8a4-8822-4204-8c61-459c59eeae2d

Additionally, a new test, Link_Renders_DisabledParameter, has been added to Radzen.Blazor.Tests to validate the disabled state of the link.

Looking forward to your feedback!

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1970 **State:** closed **Merged:** Yes --- **Enhancement: Disabled Property for RadzenLink** I've added a new feature to the RadzenLink component, allowing it to be disabled, similar to the disabled property in other components. This enhancement provides better control over link interactions, improving usability in scenarios where navigation should be temporarily restricted. **Example:** `<RadzenLink Icon="block" Disabled="true" Path="button" Text="This link is disabled and cannot be accessed" />` There's already an open issue for this enhancement: [#1870](https://github.com/radzenhq/radzen-blazor/issues/1870). Added a new bool Disabled property to the RadzenLink component. When set to true, it applies the rz-link-disabled class, reducing opacity by 50% and disabling click events. When re-enabled, all functionalities return to normal, as demonstrated in the video below. https://github.com/user-attachments/assets/7e94e8a4-8822-4204-8c61-459c59eeae2d Additionally, a new test, Link_Renders_DisabledParameter, has been added to Radzen.Blazor.Tests to validate the disabled state of the link. Looking forward to your feedback!
claunia added the pull-request label 2026-01-29 18:21:28 +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#3002