I'm having trouble getting a group total on a column and I'm not sure what the best way to go about it is. From my table I"m selecting the fields I need and a calculated field.
Select claims, claimsprocessed, claimsprocessed/claims [percentclaims]...........................
I have the aggregate set to sum for claims and claimsprocessed
I set the aggregate to custom for percentclaims
What I'd like to do is get the totals for claims and claimsprocessed from the GridGroupFooterItem and calculate the correct total percentage.
Something like:
I'm not sure how to get the totals for claims and claimsprocessed out of the GridGroupFooter. Is that possible? Could you give me an example.
I've looked at the documentation on CustomAggregrates and figure I may have to go the route explained at the bottom of this document: http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html ,but I figured I might ask to see if what I'm trying to do is possible.
Thanks
Select claims, claimsprocessed, claimsprocessed/claims [percentclaims]...........................
I have the aggregate set to sum for claims and claimsprocessed
I set the aggregate to custom for percentclaims
What I'd like to do is get the totals for claims and claimsprocessed from the GridGroupFooterItem and calculate the correct total percentage.
Something like:
protected void ARGrid1_CustomAggregate(object sender, GridCustomAggregateEventArgs e) |
{ |
if (e.Item is GridGroupFooterItem) |
{ |
GridGroupFooterItem itm = (GridGroupFooterItem) e.Item; |
int totclaims = //Get total claims from footer ????? |
int totprocessed = //Get total processed claims from footer ?????? |
e.Result = totprocessed/totclaims; |
} |
} |
I've looked at the documentation on CustomAggregrates and figure I may have to go the route explained at the bottom of this document: http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html ,but I figured I might ask to see if what I'm trying to do is possible.
Thanks