[PR #1660] RadzenTree AllowCheckOnLabelClick parameter #2858

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

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

State: closed
Merged: No


This PR add a new parameter to RadzenTree to allow users to click on the label of an item to check its checkbox.

When the parameter is true, the span is replaced with a label tag. I moved the for attribute to this new label, as a span cannot use it.

I also added a cursor: inherit; style to the .rz-treenode-label class to overwrite the cursor: default; style set by browsers on the label tag.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1660 **State:** closed **Merged:** No --- This PR add a new parameter to RadzenTree to allow users to click on the label of an item to check its checkbox. When the parameter is true, the `span` is replaced with a `label` tag. I moved the `for` attribute to this new `label`, as a `span` cannot use it. I also added a `cursor: inherit;` style to the `.rz-treenode-label` class to overwrite the `cursor: default;` style set by browsers on the `label` tag.
claunia added the pull-request label 2026-01-29 18:20:47 +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#2858