Access Grouping value in GroupFooterTemplate within a Grid

2 Answers 20 Views
Grid
Benjamin
Top achievements
Rank 1
Benjamin asked on 28 May 2021, 08:04 AM

Hello together

I have a hopefully simple question.

How can I access the grouping value in the GroupFooterTemplate?

What I can do in the GroupHeaderTemplate by using context.Value in the GroupFooterTemplate only aggregations are given in the "context".

Any help apreciated.

Best regards,

Benjamin

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 28 May 2021, 11:08 AM

Hello again Benjamin,

I just realized I had missed a key point in your question. You are correct, the group footer does not provide the current group value, and just storing it from the header won't work out because there can be multiple groups.

So, for this you would need the template to provide more info in the context and that's something we need to implement in the component. You can Follow its status here: https://feedback.telerik.com/blazor/1486405-expose-current-group-field-value-and-the-rest-of-the-field-aggregates-in-the-groupfootertemplate. I've added your Vote to it on your behalf to raise its priority, and if you click the Follow button you will start getting emails for status updates (such as when we know which release will have it).

Regards,
Marin Bratanov
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.

0
Marin Bratanov
Telerik team
answered on 28 May 2021, 08:45 AM

Hello Benjamin,

You can take the value from the context and store it in a field in your view-model so you can use it for other things.

Regards,
Marin Bratanov
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.

Tags
Grid
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or