Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Grid > Group totals
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Group totals

Feed from this thread
  • Morten Intermediate avatar

    Posted on Apr 19, 2005 (permalink)

    Any plans on implementing group totals? (or am I missing the feature?)

  • Mike Mike admin's avatar

    Posted on Apr 20, 2005 (permalink)

    Hello Morten,

    Thank you for being interested in our new product.

    We actually did implement this feature, or at least a similar feature what is generally understood as 'group totals'. Please take a look at the online examples of r.a.d.grid and especially to these ones:
    1. Grouping, group totals features exposed at:
      http://www.telerik.com/demos/aspnet/grid/examples/groupby/expressions/defaultcs.aspx
    2. Programmatic usage - grouping within hierarchy with group totals and formatting at:
      http://www.telerik.com/demos/aspnet/grid/examples/Programming/GroupBy/defaultcs.aspx

    We hope this helps. Feel free to ask any other questions as they pop up. We would appreciate a lot your feedback.

    Regards,
    the telerik team

  • Eric Braun avatar

    Posted on Aug 23, 2005 (permalink)

    I understand there is a method to get "group" totals as in the example: http://www.telerik.com/r.a.d.controls/Grid/Examples/GroupBy/Expressions/DefaultCS.aspx.

    But, is there any way to list those totals under their respective columns at the bottom of the group instead of the grouping header? For example, if there is an amount column - at the bottom of that grouping in that column, I'd like to have a "totals" row that sums those amounts for each group. Sort of a more excel/reporting services type UI.

    Thanks,

  • Mike Mike admin's avatar

    Posted on Aug 24, 2005 (permalink)

    Hi Eric,

    This functionality is still not supported by r.a.d.grid. We are always open to reasonable suggestions and your feedback is highly appreciated. We will consider adding this feature in the future releases. Thank you for pointing this detail to us, your telerik points have been updated for the report.

    All the best,
    Mike
    the telerik team

  • Angela Sampedro avatar

    Posted on Jun 27, 2006 (permalink)

    Hi Telerik team,


    I am right now testing grids from different companies.
    and so far i REALLY like the grid from Telerik.
    It is stable and it can manage a lot of data
    BUT
    for my company it is a BIG issue that doesnt have group totals
    we are missing also the print functionality but that one is more or less done if i do the export to Excel
    but ok, the point or the question is, when Telerik thinks to implement group totals like it is suggested here (But, is there any way to list those totals under their respective columns at the bottom of the group instead of the grouping header?) ?

    I really would like to know if it is possible and for when is it possible ??

    thanks
    Angela.

  • Sebastian Sebastian admin's avatar

    Posted on Jun 28, 2006 (permalink)

    Hello Angela,

    Especially for you we have prepared a demo application which illustrates how to implement group totals and printing with the current version of r.a.d.grid. Please note that printing is browser feature and only the window object provides such method.  Therefore, you can print the grid if you hide the rest of the controls which should be excluded from the resulting document or you can export the grid content to MS Word and print from Word file.

    Kind regards,
    Stephen
    the telerik team

  • Angela Sampedro avatar

    Posted on Jun 28, 2006 (permalink)

    Hello Stephen!


    Very kind that i get this example from you and i am very excited to try it
    but I work in ASP.NET 1.1
    Would you like to do the project in it ?

    thank you very much
    Angela.

  • Sebastian Sebastian admin's avatar

    Posted on Jun 29, 2006 (permalink)

    Of course, Angela - an ASP.NET 1.x version of the application is enclosed to this message.

    Best wishes,
    Stephen
    the telerik team
    Attached files

  • Angela Sampedro avatar

    Posted on Jul 3, 2006 (permalink)

    Hello Stephen,

    Thanks for the example, It was great but also needed the totals value.

    I have modified the code and It works great until I do click in collapse or expand then my total values are gone, could you help me with this?

    thanks.
    Angela.





    Imports Telerik.WebControls

    Imports System.Data.OleDb

    Imports System.Web.UI.WebControls

    Public Class WebForm1

    Inherits System.Web.UI.Page

    #Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.

    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    Protected WithEvents RadGrid1 As Telerik.WebControls.RadGrid

    'NOTE: The following placeholder declaration is required by the Web Form Designer.

    'Do not delete or move it.

    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

    'CODEGEN: This method call is required by the Web Form Designer

    'Do not modify it using the code editor.

    InitializeComponent()

    End Sub

    #End Region

    Dim total As Double

    Dim quantity As Int64

    Dim discount As Double

    Private Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles RadGrid1.ItemCreated

    If TypeOf e.Item Is GridGroupHeaderItem Then

    Dim table As Table = CType(e.Item.OwnerTableView.Controls(0), Table)

    Dim row As TableRow = CType(e.Item, TableRow)

    Dim rowIndex As Integer = table.Rows.GetRowIndex(row)

     

    If TypeOf table.Rows(rowIndex - 2) Is GridDataItem Then

    Dim shiftcol = e.Item.OwnerTableView.GroupByExpressions.Count

    Dim newItem As GridNestedViewItem = New GridNestedViewItem(e.Item.OwnerTableView, -1, -1)

    Dim newCell As TableCell = New TableCell

    newCell.Text = "MyGroupTotals"

    newItem.Cells.Add(New TableCell)

    newItem.Cells.Add(newCell)

    table.Rows.AddAt(rowIndex, newItem)

    For I As Integer = 1 To shiftcol - 1

    newItem.Cells.Add(New TableCell)

    Next

    Dim newCell2 As TableCell = New TableCell

    newCell2.Text = CStr(total)

    newItem.Cells.Add(New TableCell)

    newItem.Cells.Add(newCell2)

    table.Rows.AddAt(rowIndex, newItem)

    Dim newCell3 As TableCell = New TableCell

    newCell3.Text = CStr(quantity)

    newItem.Cells.Add(newCell3)

    table.Rows.AddAt(rowIndex, newItem)

    Dim newCell4 As TableCell = New TableCell

    newCell4.Text = CStr(discount)

    newItem.Cells.Add(newCell4)

    table.Rows.AddAt(rowIndex, newItem)

    total = 0

    quantity = 0

    discount = 0


    End If

    End If

    End Sub

    Private Sub RadGrid1_ItemDatabound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles RadGrid1.ItemDataBound

    If TypeOf e.Item Is GridDataItem Then

    Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)

    total = total + CDbl(dataItem("UnitPrice").Text)

    quantity = quantity + CInt(dataItem("Quantity").Text)

    discount = discount + CDbl(dataItem("Discount").Text)

    End If

    End Sub

     

    Private Sub RadGrid1_NeedDataSource(ByVal source As System.Object, ByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource

    RadGrid1.DataSource = DataSourceHelperVB.GetDataTable("SELECT * FROM [Order Details]")

    End Sub

    End Class




  • Sebastian Sebastian admin's avatar

    Posted on Jul 5, 2006 (permalink)

    Hello Angela,

    You may try adding the following lines in your ItemCommand handler:

    Private Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.ItemCommand
            If (e.CommandName = RadGrid.ExpandCollapseCommandName) Then
                RadGrid1.MasterTableView.Rebind()
            End If
    End Sub


    Rebinding the grid you will invoke implicitly the ItemDataBound event which will populate the cells in the group footers with the relevant sums.

    Kind regards,
    Stephen
    the telerik team

  • Angela Sampedro avatar

    Posted on Jul 5, 2006 (permalink)

    Thanks Stephen!

    After some "guessings" I have found already that that was the missing code line.

    but now there is other problem if I do the export to excel with that extra row with total values then the values are 0 in the export file

    how can i solve this?

    Angela.

  • Sebastian Sebastian admin's avatar

    Posted on Jul 6, 2006 (permalink)

    Hi Angela,

    Indeed this is a limitation when using group totals in the sample application from my previous post - I apologize if this is causing you inconvenience. We will research this matter and will do our best to modify the present exporting mechanism of the grid to include the group totals as well. I hope this is not a major show stopper for you.

    Kind regards,
    Stephen
    the telerik team

  • Angela Sampedro avatar

    Posted on Jul 6, 2006 (permalink)

    Hi Stephen,

    Well it is very important for the company where I work that we are able to have group totals and export to Excel, Word, so the user can print what they have in the grid, for the rest the radgrid have what we need

    Actually this was the last test,  unfortunatly, I dont think my bosses will accept the export without totals.

    It is possible for you to say when the group totals will be included in the export?


    Angela.

  • Vlad Vlad admin's avatar

    Posted on Jul 10, 2006 (permalink)

     

    Hi Angela,

    We have prepared for you another example to illustrate how to achieve your goal. Please find it attached and let us know how it goes.

    Kind regards,

    Vlad
    the telerik team
    Attached files

  • Angela Sampedro avatar

    Posted on Jul 10, 2006 (permalink)

    Hi Vlad!

    It works!!!

    thank you very much, you made a lot of people happy today

    Angela.

  • Posted on Mar 13, 2007 (permalink)

    Hi,

    Currently trying to implement subtotals for groups as prescribed above but receive the following error:

    [NullReferenceException: Object reference not set to an instance of an object.] Telerik.WebControls.GridNestedViewItem.get_NestedTableViews()

    Any ideas?
    Thanks.

  • Vlad Vlad admin's avatar

    Posted on Mar 13, 2007 (permalink)

    Hi Jeremy,

    Please change GridNestedViewItem with GridNoRecordsItem and let us know how it goes.

    All the best,
    Vlad
    the telerik team

  • Posted on Mar 13, 2007 (permalink)

    That works a treat.

    I've noticed in your sample the last group does not display the sub totals though.

    Thanks.
    Jeremy

  • Sebastian Sebastian admin's avatar

    Posted on Mar 15, 2007 (permalink)

    Hi Jeremy,

    Indeed you are right - this approach does not add the group totals row at the bottom of the last group. To work around that try is adding the NoRecordItem's after SaveViewState, so that they do not mess up the group header indexes. To do that you had to inherit from RadGrid and override Render():

    Public Class GroupTotalsGrid    
        Inherits RadGrid    
        
        Private Sub AddTotalsItem(ByVal currentGroupHeader As GridGroupHeaderItem, ByVal nextGroupHeader As GridGroupHeaderItem)    
            Dim table As Table = CType(currentGroupHeader.OwnerTableView.Controls(0), Table)    
            Dim row As TableRow = CType(nextGroupHeader, TableRow)    
        
            Dim nextGroupIndex As Integer = table.Rows.Count    
            If Not nextGroupHeader Is Nothing Then    
                nextGroupIndex = table.Rows.GetRowIndex(row)    
            End If    
        
        
            Dim shiftcol = currentGroupHeader.OwnerTableView.GroupByExpressions.Count    
            Dim newItem As GridNoRecordsItem    
            newItem = New GridNoRecordsItem(currentGroupHeader.OwnerTableView, -1, -1)    
        
            Dim newCell As TableCell = New TableCell    
        
            newItem.Cells.Add(newCell)    
            newCell.Text = "<span style='color: red'>GROUPFOOTER</span>"    
        
        
            table.Rows.AddAt(nextGroupIndex - 1, CType(newItem, TableRow))    
        
        End Sub    
        
        Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)    
        
            Dim groupHeaders As GridItem() = MasterTableView.GetItems(GridItemType.GroupHeader)    
            Dim i As Integer    
            For i = 0 To groupHeaders.Length - 1    
                Dim nextHeader As GridGroupHeaderItem = Nothing    
                If i < groupHeaders.Length - 1 Then    
                    nextHeader = groupHeaders(i + 1)    
                End If    
                AddTotalsItem(groupHeaders(i), nextHeader)    
            Next    
        
            MyBase.Render(writer)    
        End Sub    
    End Class    
     

    For more details I am enclosing a sample page to this forum thread.

    Best regards,
    Stephen
    the telerik team
    Attached files

  • Hristo Deshev Hristo Deshev admin's avatar

    Posted on Mar 22, 2007 (permalink)

    Hi guys,

    I've collected the bits and pieces posted so far and wrapped them in a nice reusable class that inherits from RadGrid. Check it out in this code library project.

    Greetings,
    Hristo Deshev
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

  • Posted on Mar 22, 2007 (permalink)

    Hi Hristo,

    Any chance of supplying this example in 1.1 as well?

    Thanks in advance.

  • Hristo Deshev Hristo Deshev admin's avatar

    Posted on Mar 22, 2007 (permalink)

    Hi

    The code has nothing that is .NET 2.0 specific and should be perfectly usable under .NET 1.x.

    All the best,
    Hristo Deshev
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

  • Travis Master avatar

    Posted on Apr 26, 2007 (permalink)

    Thanks for the project code library example.  Does that only work for totalling one column?  Is there a way to have totals for 2 or more columns at the bottom of their respective columns?

  • Sebastian Sebastian admin's avatar

    Posted on Apr 27, 2007 (permalink)

    Hello Travis,

    Unfortunately the solution supports merely one level group totals. However, you may be happy to know that for the next major version 5.0.0 of RadGrid (scheduled at the beginning of September) we will introduce new built-in group totals feature. 

    I hope that the present temporary workaround is applicable for you.
     
    Best regards,
    Stephen
    the telerik team

    Instantly find answers to your questions at the new telerik Support Center

  • EaDeveloper avatar

    Posted on Jul 18, 2007 (permalink)

    Hi Stephen,

    I am currently working on a similar grid(as Travis's request) with multiple group column totals POC for one of my projects. I was able to get it to work fine with group totals for multiple columns.

    The requirement for my grid is to display the monthly data and some of my details column should be hidden depending upon the month I am displaying (eg.  Days columns  29, 30, 31 have to be hidden for Feb), my regular group/details columns are working fine but, I am hitting the wall when it comes to the custom (inserted new) group total column.

    Let me try to explain further, When I display the data for Feb all information is displayed (and hidden) as it should. But, when I switch my month to Jan/Mar etc.. My group totals are not populating(calculating), I understand it happens because per the RadGrid Event Sequence "The RadGrid_ItemCreated event is fired before the Postback.Events". The steps to rebind the RadGrid after Postback from RadGrid's help documentation has a link to fire the  this help article did not help to solve the issue.

    I have a stand-alone sample project created for testing this functionality and I can forward it you or any of Telerik Support team to investigate further. Please provide me an email address. 

    Thanks
    Rajesh Ramana

  • Sebastian Sebastian admin's avatar

    Posted on Jul 20, 2007 (permalink)

    Hi EaDeveloper,

    The grouping feature of RadGrid requires the DataSourcePersistenceMode to be set to ViewState:

    http://www.telerik.com/help/aspnet/grid/?RadGrid~Telerik.WebControls.GridTableView~DataSourcePersistenceMode.html

    If you would like to refresh the grid upon changing the month from an external control, you can try invoking the Rebind() method. More about the RadGrid event lifecycle you can learn from this online help article:

    http://www.telerik.com/help/aspnet/grid/?grdEventSequence.html

    If this does not help, start a formal support ticket from your Client.net account and attach a stripped working version of your project to it. We will examine your complete implementation in detail and will advice you further.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Ayyappan avatar

    Posted on Aug 3, 2007 (permalink)

    Hi,
    I found a solution for this.

    You need to make few changes to the same code to display the footer:
    1. In the first IF condition check include e.Item is GridFooterItem check
    2. If the item is GridFooterItem then set 'rowIndex' to total number of rows in the table.

    Here is the code change:

    if
    (e.Item is GridGroupHeaderItem || e.Item is GridFooterItem)

    {

    Table table = (Table)e.Item.OwnerTableView.Controls[0];

    TableRow row = (TableRow)e.Item;

    int rowIndex = table.Rows.GetRowIndex(row);

    if (e.Item is GridFooterItem)

    rowIndex = table.Rows.Count;

    .....
    //All other part of the code remains the same
    }

    regs,
    Ayyappan

  • lyners avatar

    Posted on Aug 30, 2007 (permalink)

    Thanks to all that have contributed to this thread. Without it I would have not been able to make a class with all the appropriate code. I do have a problem though. I have a RADGrid that has multi level groups with totals for the groups. The on-line presentation works, but when I export to excel, I lose my totals (the lines do not appear). I am using this code to export:

    vb:
        Protected Sub ButtonExport_Click1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonExport.Click  
            RadGrid1.ExportSettings.ExportOnlyData = False 
            RadGrid1.ExportSettings.IgnorePaging = True 
            RadGrid1.ExportSettings.OpenInNewWindow = True 
            RadGrid1.MasterTableView.ExportToExcel()  
        End Sub  
     

    How do i get the total rows to export with the rest of my data? Am I exporting the wrong section?

    Thank you

  • Giuseppe Giuseppe admin's avatar

    Posted on Aug 30, 2007 (permalink)

    Hi lyners,

    Would it be possible for you open a formal support ticket and send us a runnable version of your project that we could investigate locally so we can advise you properly?


    Greetings,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • lyners avatar

    Posted on Aug 31, 2007 (permalink)

    Hi Manuel,
    If you look at this thread, you will see how the grid is created, and then from there, if you try and export, the total rows do not show.

    http://www.telerik.com/community/forums/thread/b311D-hghke.aspx

    Thank you,
    lyners

  • Giuseppe Giuseppe admin's avatar

    Posted on Sep 3, 2007 (permalink)

    Hello lyners,

    We forwarded your inquiry to our developers and unfortunately it seems it is not possible to export the contents of the group totals in the current implementation of RadGrid. As you are probably aware at the moment the control does not support natively group totals and the current solution cannot be exported to word / excel. Originally we had plans to introduce proper support for group totals for the Q2 release of RadGrid but due we had to postpone this feature for the Q3 release in December.

    Sorry for the inconvenience.


    Sincerely yours,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • na avatar

    Posted on Sep 13, 2007 (permalink)

    Hi Manuel,  
      In your reply to lyners on 9/3/2007,you mentioned about your plans to
    introduce proper support for group totals in Q2 release of RadGrid.
    When can we expect the Q2 release RadGrid?
    Is Q2 release of RadGrid going to support for group totals?

    Actully I am able to get subtotals but when I edit, subtotals are not editing,can you give us some solution for this.

    Thank you
    Nafisa

  • Sebastian Sebastian admin's avatar

    Posted on Sep 14, 2007 (permalink)

    Hello Nafisa,

    Unfortunately due to the other features with high importance we have to integration for the new major release of RadGrid (export to pdf/csv, frozen columns, control state ASP.NET 2.x feature, etc.) we had to push back the implementation of group totals for one of the upcoming versions of the product. Hopefully this feature will appear in the Q3 release of RadGrid, scheduled in December 2007.
    In the meantime if you want to refresh the footer totals client-side upon editing some of the grid records, you may find worthwhile reviewing the project from the code library thread pointed below:

    http://www.telerik.com/community/code-library/submission/b311D-hemac.aspx

    Feel free to transform/extend the logic to work for your custom group totals as well.

    Kind regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Posted on Sep 28, 2007 (permalink)

    I changed the codes slightly to allow it work with pagination.

            ///***********************************************************************  
            /// <summary> 
            /// Define custom ItemCreated behaviour  
            /// </summary> 
            protected void RadGrid_ItemCreated(object sender, GridItemEventArgs e)  
            {  
                int nextGroupIndex = 0;  
                int pageCount = e.Item.OwnerTableView.PageCount;  
                int pageCurrent = e.Item.OwnerTableView.CurrentPageIndex + 1;  
     
                if (e.Item is GridFooterItem && pageCurrent == pageCount)  
                {  
                    nextGroupIndex = ((Table)e.Item.OwnerTableView.Controls[0]).Rows.Count;  
                };  
     
     
                //Is it a GridDataItem  
                if (e.Item is GridGroupHeaderItem || nextGroupIndex > 0)  
                {  
                    Table table = (Table)e.Item.OwnerTableView.Controls[0];  
                    TableRow row = (TableRow)e.Item;  
                    int rowIndex = table.Rows.GetRowIndex(row);  
     
                    if(nextGroupIndex > 0) {  
                        rowIndex = nextGroupIndex;  
                    }  
     
                    if (table.Rows[rowIndex - 2] is GridDataItem)  
                    {         
                        GridNoRecordsItem newnewItem = new GridNoRecordsItem(e.Item.OwnerTableView, -1, -1);  
     
                        TableCell newnewCell = new TableCell();  
                        newCell.Text = "<span style='float:right; font: bold 1.1em;'><br/>Total interest charged is <br/><br/><span>";  
                        newCell.ColumnSpan = 12;  
                        newItem.Cells.Add(newCell);  
                        table.Rows.AddAt(rowIndex, newItem);  
     
                        newnewCell = new TableCell();  
                        newCell.Text = string.Format("<span style='float:right; font: bold 1.1em; {1}'><br/>{0}<br/><br/></span>",  
                            string.Format("{0:C2}", total), total <0 ? "color=red" : "" );  
                        newCell.ColumnSpan = 1;  
                        newItem.Cells.Add(newCell);  
                        table.Rows.AddAt(rowIndex, newItem);  
     
                        newnewCell = new TableCell();  
                        newCell.Text = "<br/>";  
                        newCell.ColumnSpan = 2;  
                        newItem.Cells.Add(newCell);  
                        table.Rows.AddAt(rowIndex, newItem);  
     
                        // reset the total count;  
                        total = 0;  
                        quantity = 0;  
                   
                    }  
                      
                }else if (e.Item is GridDataItem)   
                {  
                    GridDataItem dataItem  = (GridDataItem)e.Item;  
                    totaltotal = total + Convert.ToDouble(e.Item.OwnerTableView  
                        .DataKeyValues[e.Item.ItemIndex]["total"]);  
                    quantityquantity = quantity + Convert.ToInt64(e.Item.OwnerTableView  
                        .DataKeyValues[e.Item.ItemIndex]["quatity"]);  
               }  
            }  
     
       
     
        }  
     

  • mike avatar

    Posted on Feb 14, 2008 (permalink)

    I just finished a project where rows in a scrollable RadGrid would “break” on a subtotal line, and then continue on showing the next grouping /subtotal, etc.  There could be a hundred groups/sub-totals on the grid.  Also, my subtotal is the sum of those rows “selected via checkbox”, so as the user checks or unchecks boxes, the group subtotal recalculates.  To do this with no postbacks:

    1.   The database query sorts the data, and unions in a subtotal row with amount (to minimize grid processing). Data and sub-total rows are labeled with 1/2, or a/b, or whatever.  So the grid receives a prebuilt sub-total row.

    2.   ItemDataBound: If GridDataItem:  hide checkboxes on sub-total rows (display or visible=false), sub-total row BackColor set to something cool, checkboxes on the data-rows are set “checked=true” (to match the sub-total amount) and JavaScript function is assigned to the OnClick event, and (optionally) alternating data rows are colored. My customers wanted pre-selected checkboxes. You can do however you wish – just make sure the sub-total amount is accurate.

    3.  JavaScript function is: Obtain checkbox, cell, row, rowIndex, table, and table.rows. Starting on current-row, go up to find beginning of our group (will hit prev group sub-total row label, or grid top),  then go down to end of our group (look for sub-total label), summing when checkbox is checked (parseFloat the row’s innerText value after removing commas and dollar-signs, etc.).  Write total to total-line (format to currency) and exit  (to force two decimal currency format while reducing rounding errors, I multiply each row by 100, accum the amounts, and divide by 100 when writing).

     The only challenge is if you need to use these updated sub-total amounts, because JavaScript wrote them and the grid seems to know nothing about them.  Perhaps xmlHTTP, or a rad.label “Put” method?    

    Michael Goodwin

  • Sebastian Sebastian admin's avatar

    Posted on Feb 15, 2008 (permalink)

    Hi Mike,

    I am glad that you implemented a solution which meets your entire list of requirements. I will appreciate if you post a working sample in the code library section on our site to make it publicly available for the Telerik community. Thus other community members can benefit from it as well. As a token of gratitude we will reward you with up to 10000 Telerik points for the submission. Let me know what you think.

    In addition, I am pleased to inform you that for the next version of RadGrid Prometheus (Q1 2008) we will introduce built-in group totals feature for the control with declarative and custom aggregates. The new major release of our Prometheus suite is scheduled in the middle of April. I believe that this is good news for you.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Grid > Group totals