Data grid self-Reference hierarchy IQueryable support. #950

Closed
opened 2026-01-29 17:46:47 +00:00 by claunia · 1 comment
Owner

Originally created by @hrvoje-grabusic on GitHub (Aug 8, 2023).

Describe the bug
When using Data grid self-Reference hierarchy and setting the Data attribute to IQueryable Instead of IEnumerable and clicking the expand icon, nothing happens.
If I do .ToList() on my IQueryable and set it to IEnumerable then it works as expected.

To Reproduce
Create DataGrid with Data grid self-Reference hierarchy and set Data attribute to IQueryable

Additional context
I am using MongoDB C# driver instead of EF so this might be the problem.
I haven't tried this with EF.

Originally created by @hrvoje-grabusic on GitHub (Aug 8, 2023). **Describe the bug** When using Data grid self-Reference hierarchy and setting the Data attribute to IQueryable<T> Instead of IEnumerable<T> and clicking the expand icon, nothing happens. If I do .ToList() on my IQueryable and set it to IEnumerable then it works as expected. **To Reproduce** Create DataGrid with Data grid self-Reference hierarchy and set Data attribute to IQueryable<T> **Additional context** I am using MongoDB C# driver instead of EF so this might be the problem. I haven't tried this with EF.
Author
Owner

@enchev commented on GitHub (Aug 9, 2023):

Our demo is using exactly IQueryable:
image
Here is the same with explicitly declared variable as IQueryable:
image
image

@enchev commented on GitHub (Aug 9, 2023): Our demo is using exactly IQueryable: ![image](https://github.com/radzenhq/radzen-blazor/assets/5804953/ccbffecf-fd27-4e2a-baea-c4c3cebd1434) Here is the same with explicitly declared variable as IQueryable: ![image](https://github.com/radzenhq/radzen-blazor/assets/5804953/ebf2fe83-f081-4306-85bc-aa416833e4ae) ![image](https://github.com/radzenhq/radzen-blazor/assets/5804953/f30568de-a39b-4a33-b76b-a0eb6ccaded9)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#950