Declined
Last Updated: 13 Dec 2024 07:38 by ADMIN
Viktoras
Created on: 05 Dec 2024 13:04
Category: UI for Blazor
Type: Bug Report
0
With Telerik.UI.for.Blazor.7..0.0 in wasm solutions stopped work grouping in TelerikGrid
Updated Telerik.UI.for.Blazor from 6.2 to 7.0 and noticed that in wasm solutions had been stopped work grouping in TelerikGrid. 
3 comments
ADMIN
Tsvetomir
Posted on: 13 Dec 2024 07:38

Hello Viktoras,

Thank you for your effort in providing a runnable example that reproduces the encountered behavior.

With our latest version, we introduced a change for the same scenario. When using grouping and OnRead, casting data to a list of objects (.Cast<object>()) is no longer needed. So, the required modification in the provided example is to remove the Cast<object> from the OnRead handler.

f (args.Request.Groups.Count > 0)
        {
            var data = GroupDataHelpers.DeserializeGroups<WeatherForecast>(result.GroupedData);
            args.Data = data.ToList();

            args.AggregateResults = GridAggregateResult.ConvertToAr(result.GridAggregateResults);

        }
        else
        {
            args.Data = result.CurrentPageData.ToList();
        }

With the above in mind, I'm marking the bug report item as "Declined".

I hope the provided information serves you well.

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.

Viktoras
Posted on: 06 Dec 2024 13:15

Hello Tsvetomir. I think REPL sample app is not the best place to reproduce this new Telerik.UI.for.Blazor issue because essential thing is DataSourceRequest data load via API on server-side with DataEnvelope<DataModel> structure. I prepared small demo solution for You based on https://github.com/telerik/blazor-ui/tree/master/grid/datasourcerequest-on-server/WasmApp. In Ticket 1622861 we already discussed with Telerik team about not working GridAggregates, but from version 7.0.0 in such applications Grouping is not working at all.

So to reproduce this issue please:

1. Found out attached zip
2. Unzip content
3. Open *.sln with Visual Studio
4. Run applicaton and try to group grid by column "Summary" or "Temp. C", "Temp. F"
5. Log that grid grouping with Telerik.UI.for.Blazor.7.0.0 is not working
6. Open tool "Manage NuGet Packages for Solution" and downgrade Telerik.UI.for.Blazor.7.0.0 to 6.2.0
7. Run application again and try to group grid by column "Summary" or "Temp. C", "Temp. F"
8. Log that grid grouping with Telerik.UI.for.Blazor.6.2.0 is working but GridAggretates are not working.

Regards,
Viktoras

 

ADMIN
Tsvetomir
Posted on: 06 Dec 2024 09:54

Hello Viktoras,

Thank you for the provided screenshot.

I tried to recreate the behavior from the screenshot on my side within this REPL sample app (the REPL platform is a WASM application). As a result, the grouping is working as expected. This leads me to think that, I'm missing something from the actual configuration.

As a next step, please modify the REPL example to reproduce the behavior and send it back to me for inspection. This will help me see the behavior first-hand and troubleshoot it further. For now, I'm changing the item status to "Need More Info".

I look forward to your reply.

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.