Unplanned
Last Updated: 27 Oct 2022 09:28 by ADMIN
Danilo
Created on: 16 Nov 2020 15:27
Category: Grid
Type: Feature Request
12
Allow serializing and deserializing grid aggregates with server grouping

I am using this sample to implement server-side grouping:

https://github.com/telerik/blazor-ui/tree/master/grid/datasourcerequest-on-server/WasmApp

Now I need Aggregate sum for the price in the GroupFooterTemplate. When I add aggregates, exceptions are thrown if a group footer uses the aggregate value, if not - the grid simply does not look grouped.

---

ADMIN EDIT

The issue stems from the inability of the System.Text.Json to deserialize interfaces - there are a couple of interfaces in the datasource request and data source result related to aggregates. Preliminary review indicates that perhaps some or all of them might be changed to, for example, Dictionary<string, object> from the current IDictionary<string, object>, or perhaps the framework might "learn" to deserialize interfaces.

----

2 comments
ADMIN
Dimo
Posted on: 27 Oct 2022 09:28

Hi Philip and everyone,

I realize this feature may be important for you, but I admit we are focused on tasks with higher custom demand. Sorry about that.

If this is a showstopper for you, perhaps you can experiment with you own custom (manual) serialization? Another possible option is to calculate aggregates separately and render them in group footer and footer templates.

Regards,
Dimo
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.

Philip
Posted on: 21 Oct 2022 03:08
Any update on this? Or any way we can do server-side grouping? For large grids, aggregate performance is very bad client-side - needs to be done server-side.