The docs/demos use the classic list of Employee class as data source, but what if the data source is an ExpandoObject instead? I've tried a few things, but the expanded group only fetches one row, and sometimes no rows at all. I'd love to hear if anyone has got this working?
1 Answer, 1 is accepted
0
Tsvetomir
Telerik team
answered on 11 Oct 2024, 08:16 AM
Hello Johan,
To gather more information on how to bind the Grid component to the Expando object, I recommend referring to our KB article - Bind Grid to Expando Object. The article, also how to use such a Grid configuration with the Load on Demand Groups functionality.
I hope the provided information and examples in the article help you to move forward with your requirements.
I am well aware of those articles, but when I try load groups on demand with a virtual grid but with ExpandoObject, incorrect number of items gets loaded.
Ok, that explains. Thanks for getting back on this. I'll look at the linked item. Unfortunately I cannot use a "real" class/object because the result may have one or many columns depending on a search results.
Tsvetomir
Telerik team
commented on 25 Oct 2024, 06:16 AM
Thank you Johan for sharing more information about your scenario.
For the time being, the other alternative is to remove the LoadGroupsOnDemand functionality and use regular paging so you can still have grouping.