[PR #822] [MERGED] add ClearSelection method to RadzenTree #2336

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/822
Author: @tecxx
Created: 2/19/2023
Status: Merged
Merged: 2/21/2023
Merged by: @enchev

Base: masterHead: master


📝 Commits (1)

  • ca63a73 add ClearSelection method to RadzenTree

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 Radzen.Blazor/RadzenTree.razor.cs (+8 -1)

📄 Description

i was looking for a way to reset the internal "SelectedItem" state in RadzenTree. This is useful when the tree is used as a filter for other items (e.g. a datalist). After resetting the filter, the previously selected node can't be selected again, as in it's internal state it is still selected, therefore not triggering a change event upon mouse click.
with this PR the internal state can be cleared, and the previously node selected again.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/822 **Author:** [@tecxx](https://github.com/tecxx) **Created:** 2/19/2023 **Status:** ✅ Merged **Merged:** 2/21/2023 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`ca63a73`](https://github.com/radzenhq/radzen-blazor/commit/ca63a7325009dee0fc8cb15aaad52637a076fc72) add ClearSelection method to RadzenTree ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenTree.razor.cs` (+8 -1) </details> ### 📄 Description i was looking for a way to reset the internal "SelectedItem" state in RadzenTree. This is useful when the tree is used as a filter for other items (e.g. a datalist). After resetting the filter, the previously selected node can't be selected again, as in it's internal state it is still selected, therefore not triggering a change event upon mouse click. with this PR the internal state can be cleared, and the previously node selected again. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:18:20 +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#2336