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

RadGrid Paging Totals

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 25 Jan 2012, 07:46 PM
Good Afternoon!

I am using the aspnet RadGrid.
It works great.

I have allowpaging on
i have my aggrigates working great in the footer.

How can i get the aggrigates to total per/page as well as per/grid(the entire dataset)

Thanks, Jon

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 26 Jan 2012, 11:00 PM
Jon:

See the Totals in Grid Footers documentation page for the method to accomplish this.

Displaying totals for all grid pages

If you prefer to show grand total in a column footer which calculates the sum for the data in the column cells in all available pages, you need to:
  1. Subscribe to the DataBound event of RadGrid

  2. Iterate through the rows in the underlying grid source

  3. Sum up the total and insert it in the respective column footer

It provides demo code behind.

Hope this helps!
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or