[PR #713] [MERGED] Fix: PropertyAccess.Getter method doesn't allow access of array membe… #2294

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

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/713
Author: @aalex675
Created: 11/17/2022
Status: Merged
Merged: 11/18/2022
Merged by: @enchev

Base: masterHead: master


📝 Commits (1)

  • 092414a Fix: PropertyAccess.Getter method doesn't allow access of array members. Change to use DynamicExpressionParser.ParseLambda from Linq.

📊 Changes

3 files changed (+103 additions, -36 deletions)

View changed files

Radzen.Blazor.Tests/PropertyAccessTests.cs (+96 -0)
📝 Radzen.Blazor/Common.cs (+4 -24)
📝 Radzen.Blazor/DropDownBase.cs (+3 -12)

📄 Description

I am trying to use the DataGrid component and discovered that nested properties work correctly, but array indexes don't. This means that Property Names like "Child.Grandchild" work, but "Child[0]" and "Child[0].Grandchild[2]" don't. This is a change to use the DynamicExpressionParser.ParseLambda method from Linq to handle creating the lambda.


🔄 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/713 **Author:** [@aalex675](https://github.com/aalex675) **Created:** 11/17/2022 **Status:** ✅ Merged **Merged:** 11/18/2022 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`092414a`](https://github.com/radzenhq/radzen-blazor/commit/092414aa0ec7cc8b087901a9a9ff46922ac1f384) Fix: PropertyAccess.Getter method doesn't allow access of array members. Change to use DynamicExpressionParser.ParseLambda from Linq. ### 📊 Changes **3 files changed** (+103 additions, -36 deletions) <details> <summary>View changed files</summary> ➕ `Radzen.Blazor.Tests/PropertyAccessTests.cs` (+96 -0) 📝 `Radzen.Blazor/Common.cs` (+4 -24) 📝 `Radzen.Blazor/DropDownBase.cs` (+3 -12) </details> ### 📄 Description I am trying to use the DataGrid component and discovered that nested properties work correctly, but array indexes don't. This means that Property Names like "Child.Grandchild" work, but "Child[0]" and "Child[0].Grandchild[2]" don't. This is a change to use the DynamicExpressionParser.ParseLambda method from Linq to handle creating the lambda. --- <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:09 +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#2294