Custom Aggregate in SummaryRowItem???

2 posts, 0 answers
  1. Shane
    Shane avatar
    9 posts
    Member since:
    Feb 2016

    Posted 08 Sep Link to this post

    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

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 08 Sep Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top