This is a migrated thread and some comments may be shown as answers.

Custom Aggregate in SummaryRowItem???

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 08 Sep 2016, 07:33 AM

Hi,

 

I have a gridview, one of the columns is time in minutes. I've summed this in the SummaryRow, but would also like to convert it to hours and minutes.

I know how to convert it (as in, I know what I need to do to minutes to get hours) and have this that gives me the total of minutes:

        Me.RadGridView1.MasterTemplate.ShowTotals = True
        Dim summaryItem As New GridViewSummaryItem("actual_time", "Total Minutes = {0}", GridAggregateFunction.Sum)
        Dim summaryRowItem As New GridViewSummaryRowItem()

        summaryRowItem.Add(summaryItem)
        Me.RadGridView1.SummaryRowsTop.Add(summaryRowItem)

Is it possible for me to get the value of so I can then manipulate it before passing it back to the SummaryItem?

Thanks, Shane

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 08 Sep 2016, 08:47 AM
Hi Shane,

Thank you for writing.

You can get and change the value in the GroupSummaryEvaluate event handler. Detailed information is available here: Customizing Summary Row

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
IT
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or