I'm having two issues with my radgrid
1) I have a aggregate group column that instead of showing the sum of the column is showing the last value in column.
2) Since the grouping wasn't working I turned on the groupfooters to show the aggregate sum, but the FooterText is not showing in the footer.
As far as I can tell, I've followed the demos exactly to use both those features.
I've attached a screen shot of the output, notice in the group header that the sum of the cost is wrong and in the footer while the cost sum is correct, the text "Total: " isn't showing.
-Jon
1) I have a aggregate group column that instead of showing the sum of the column is showing the last value in column.
2) Since the grouping wasn't working I turned on the groupfooters to show the aggregate sum, but the FooterText is not showing in the footer.
As far as I can tell, I've followed the demos exactly to use both those features.
I've attached a screen shot of the output, notice in the group header that the sum of the cost is wrong and in the footer while the cost sum is correct, the text "Total: " isn't showing.
-Jon
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GuestAdmin.ascx.cs" Inherits="GuestAdmin" %> |
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
<telerik:RadGrid ID="GridReunionGuests" AllowFilteringByColumn="False" AllowPaging="True" |
Skin="Vista" AllowSorting="False" runat="server" AutoGenerateColumns="False" |
DataSourceID="ReunionGuestsDataSource" GroupingEnabled="true"> |
<MasterTableView DataKeyNames="ReunionGuestsID" DataSourceID="ReunionGuestsDataSource" ShowGroupFooter="true"> |
<Columns> |
<telerik:GridBoundColumn DataField="FirstName" HeaderText="First" /> |
<telerik:GridBoundColumn DataField="LastName" HeaderText="Last" /> |
<telerik:GridBoundColumn DataField="Age" HeaderText="Age" /> |
<telerik:GridDropDownColumn DataField="GuestOptionsID" DataSourceID="GuestOptionsDataSource" |
HeaderText="Options" ListTextField="GuestOption" ListValueField="GuestOptionsID" |
UniqueName="GuestOption"> |
</telerik:GridDropDownColumn> |
<telerik:GridDropDownColumn DataField="RelationShipsID" DataSourceID="RelationShipsDataSource" |
HeaderText="Relationship" ListTextField="Description" ListValueField="RelationShipsID" |
UniqueName="RelationShip"> |
</telerik:GridDropDownColumn> |
<telerik:GridBoundColumn DataField="SpecialRequirements" HeaderText="Special Requirements" /> |
<telerik:GridBoundColumn DataField="ReunionYear" HeaderText="Reunion" /> |
<telerik:GridBoundColumn DataField="DateStamp" HeaderText="Date Stamp" /> |
<telerik:GridDropDownColumn DataField="RegStatusID" DataSourceID="RegStatusDataSource" |
HeaderText="Status" ListTextField="RegistrationStatus" ListValueField="RegStatusID" |
UniqueName="Status"> |
</telerik:GridDropDownColumn> |
<telerik:GridBoundColumn DataField="Cost" HeaderText="Cost" FooterText="Total: " Aggregate="Sum" DataFormatString="{0:C}" ItemStyle-HorizontalAlign="Right" DataType="System.Double" /> |
</Columns> |
<GroupByExpressions> |
<telerik:GridGroupByExpression> |
<SelectFields> |
<telerik:GridGroupByField HeaderText="Transaction ID" FieldName="transactiongroup"></telerik:GridGroupByField> |
<telerik:GridGroupByField FieldName="Email"></telerik:GridGroupByField> |
<telerik:GridGroupByField HeaderText="Customer ID" FieldName="CUSTID"></telerik:GridGroupByField> |
<telerik:GridGroupByField HeaderText="Cost" FieldName="Cost" Aggregate="Sum"></telerik:GridGroupByField> |
</SelectFields> |
<GroupByFields> |
<telerik:GridGroupByField FieldName="transactiongroup"></telerik:GridGroupByField> |
</GroupByFields> |
</telerik:GridGroupByExpression> |
</GroupByExpressions> |
</MasterTableView> |
</telerik:RadGrid> |
<asp:SqlDataSource ID="ReunionGuestsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:edu_yale_som_alumnireunion_connectionstring %>" |
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [ReunionGuests] WHERE Submitted='true'"> |
</asp:SqlDataSource> |
<asp:SqlDataSource ID="GuestOptionsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:edu_yale_som_alumnireunion_connectionstring %>" |
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [GuestOptionsID], [GuestOption] FROM [GuestOptions] WHERE Visible='true' order by DisplayOrder"> |
</asp:SqlDataSource> |
<asp:SqlDataSource ID="RelationShipsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:edu_yale_som_alumnireunion_connectionstring %>" |
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [RelationShipsID], [Description] FROM [RelationShips]"> |
</asp:SqlDataSource> |
<asp:SqlDataSource ID="RegStatusDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:edu_yale_som_alumnireunion_connectionstring %>" |
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [RegStatusID], [RegistrationStatus] FROM [RegStatus]"> |
</asp:SqlDataSource> |