Get aggregate value from footer (client side)

1 posts, 0 answers
  1. Jason
    Jason avatar
    9 posts
    Member since:
    Aug 2017

    Posted 20 Dec 2017 Link to this post

    I have a grid made up of bound columns.

    Some of the columns have an aggregate (Sum) to show totals in the footer.

    How can I access these values client side, using the column name if possible?

    Can I make use of 'get_masterTableViewFooter()' ?


    Example basic grid:

    <telerik:RadGrid ID="itemsGrid" >
        <MasterTableView ShowFooter="True" Width="100%"
                         DataKeyNames="ID" ClientDataKeyNames="ID">
                <telerik:GridBoundColumn DataField="ID" UniqueName="id" HeaderText="ID" />
                <telerik:GridBoundColumn DataField="quantity" HeaderText="Qty" UniqueName="quantity" />
                <telerik:GridBoundColumn DataField="price" HeaderText="Price" UniqueName="price" Aggregate="Sum" />
                <telerik:GridBoundColumn DataField="total" HeaderText="Total" UniqueName="total" Aggregate="Sum" />
            <FooterStyle />



    function CheckTotals(sender, eventArgs) {
        // get totals from footer
        var grid = $find('<%=itemsGrid.ClientID%>');
        var masterTableViewFooter = grid.get_masterTableViewFooter();
        // how to access 'Price' aggregate from footer??









Back to Top