hi.
I have a grid like this with GridCalculatedColumn DataType="System.TimeSpan".
Now I want to Calculate The Total Time.
Can Any one help me how to calculate the Total Time With GridCalculatedColumn .
Thank You
Suresh K
I have a grid like this with GridCalculatedColumn DataType="System.TimeSpan".
Now I want to Calculate The Total Time.
Can Any one help me how to calculate the Total Time With GridCalculatedColumn .
| <telerik:RadGrid ID="MReportRGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" |
| GridLines="None" PageSize="20" ShowGroupPanel="True" Skin="Sunset" Style="position: static" |
| Visible="False" AutoGenerateColumns="False" ShowFooter="true"> |
| <MasterTableView ShowGroupFooter="true" AllowMultiColumnSorting="true"> |
| <Columns> |
| <telerik:GridBoundColumn Aggregate="Count" DataField="Account" HeaderText="Account" |
| UniqueName="Account" FooterText="Total Files:"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ProviderName" HeaderText="Provider Name" UniqueName="ProviderName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="location" HeaderText="Location" UniqueName="location"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="sublocation" HeaderText="Sub Location" UniqueName="sublocation"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="BatchTime" HeaderText="Batch Time" UniqueName="BatchTime"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="serialno" HeaderText="Serial #" UniqueName="serialno"> |
| </telerik:GridBoundColumn> |
| <telerik:GridCalculatedColumn DataFields="playlength" HeaderText="Play Length" UniqueName="playlength" |
| DataType="System.TimeSpan" FooterText="Total Play Length:" Aggregate="sum"> |
| </telerik:GridCalculatedColumn> |
| </Columns> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldAlias="ProviderName" FieldName="ProviderName" FormatString="{0:D}" |
| HeaderValueSeparator=" From: " HeaderText="Provider Name" /> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldAlias="ProviderName" FieldName="ProviderName" SortOrder="Descending" |
| FormatString="{0:D}" HeaderText="Provider Name" /> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| <RowIndicatorColumn> |
| <HeaderStyle HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Center" /> |
| </RowIndicatorColumn> |
| </MasterTableView> |
| <ClientSettings AllowDragToGroup="True"> |
| </ClientSettings> |
| </telerik:RadGrid> |
Thank You
Suresh K