[PR #1513] [CLOSED] RadzenTreeItem now gets children from Value rather than Items list #2773

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1513
Author: @grwomack
Created: 5/17/2024
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 3f5998a Updated RadzenTree to pass the level's ChildrenProperty to the RadzenTreeItem. Updated GetAllChildValues in RadzenTreeITem to get all children from it's value rather than the items list if a ChilrenProperty has been assigned to it
  • b8849d5 Fixed bug with selecting children on RadzenTreeItem

📊 Changes

2 files changed (+39 additions, -7 deletions)

View changed files

📝 Radzen.Blazor/RadzenTree.razor.cs (+6 -5)
📝 Radzen.Blazor/RadzenTreeItem.razor.cs (+33 -2)

📄 Description

Updated the RadzenTree to provide the level's "ChildrenProperty" value to the RadzenTreeItems. If that value exists in the tree item, then the tree item will get it's children from the Value property rather than the Items property.


🔄 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/1513 **Author:** [@grwomack](https://github.com/grwomack) **Created:** 5/17/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`3f5998a`](https://github.com/radzenhq/radzen-blazor/commit/3f5998adcb95f29406ab0c2f63d0928b14b0ad1a) Updated RadzenTree to pass the level's ChildrenProperty to the RadzenTreeItem. Updated GetAllChildValues in RadzenTreeITem to get all children from it's value rather than the items list if a ChilrenProperty has been assigned to it - [`b8849d5`](https://github.com/radzenhq/radzen-blazor/commit/b8849d54a7b2387a93ceb07769caea2e1316ca53) Fixed bug with selecting children on RadzenTreeItem ### 📊 Changes **2 files changed** (+39 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenTree.razor.cs` (+6 -5) 📝 `Radzen.Blazor/RadzenTreeItem.razor.cs` (+33 -2) </details> ### 📄 Description Updated the RadzenTree to provide the level's "ChildrenProperty" value to the RadzenTreeItems. If that value exists in the tree item, then the tree item will get it's children from the Value property rather than the Items property. --- <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:20:25 +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#2773