Virtual Scrolling, Group Load On Demand with ExpandoObject

1 Answer 82 Views
Grid
Johan
Top achievements
Rank 2
Iron
Iron
Johan asked on 08 Oct 2024, 02:05 PM
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

Sort by
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.

Regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Johan
Top achievements
Rank 2
Iron
Iron
commented on 12 Oct 2024, 08:14 PM

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. 

That's why I asked for an example.

Tsvetomir
Telerik team
commented on 16 Oct 2024, 10:40 AM

Thank you for coming back with feedback.

After further observation of the described Grid configuration, I can inform you that the behavior is a known bug, that has already been reported in our feedback portal: LoadGroupsOnDemand does not let you group with an ExpandoObject as data source. I voted for the item to raise its priority. 

In the interim, a possible workarounds are suggested in the item. We apologize for any trouble caused.

Additionally, you can subscribe to the linked item to get email notification for further status updates.

Johan
Top achievements
Rank 2
Iron
Iron
commented on 22 Oct 2024, 09:32 AM | edited

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.

 

Tags
Grid
Asked by
Johan
Top achievements
Rank 2
Iron
Iron
Answers by
Tsvetomir
Telerik team
Share this question
or