Support DisabledProperty & VisibleProperty on RadioButtonList #218

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

Originally created by @brcaswell on GitHub (Oct 4, 2021).

Is your feature request related to a problem? Please describe.
I have a scenario where I need to reflect on role-based access/conditions on the UI -- where one role has access to a radio button option that is not visible to other roles; However, if that option were to be selected/saved, other roles would see the option as selected but be unable to modify.

Furthermore, some business logic is applicable to whether some of these options are disabled for selection regardless to role-based conditions.

Describe the solution you'd like
I'll be providing a Pull Request with the purposed solution.

Describe alternatives you've considered
An alternative is also provided in the example code I'll be updating/including in the PR. It is to use a foreach loop over the data in the child RenderFragment that would otherwise be specified on the RadioButtonList component.

Additional context

Screenshot of local demos change/build

image

Originally created by @brcaswell on GitHub (Oct 4, 2021). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can request your feature via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. --> **Is your feature request related to a problem? Please describe.** I have a scenario where I need to reflect on role-based access/conditions on the UI -- where one role has access to a radio button option that is not visible to other roles; However, if that option were to be selected/saved, other roles would see the option as selected but be unable to modify. Furthermore, some business logic is applicable to whether some of these options are disabled for selection regardless to role-based conditions. **Describe the solution you'd like** I'll be providing a Pull Request with the purposed solution. **Describe alternatives you've considered** An alternative is also provided in the example code I'll be updating/including in the PR. It is to use a `foreach` loop over the `data` in the child `RenderFragment` that would otherwise be specified on the `RadioButtonList` component. **Additional context** ### Screenshot of local demos change/build ![image](https://user-images.githubusercontent.com/967010/135932434-5f20fc14-4e92-41ab-a8e6-4c8bc7653c21.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#218