Hi, I am just using Radgrid with dynamic datasource but I want to show the groupfooter on each datarow. I tried to set the porperty like below:
aspx code like:
but it does not work .Actually can I set the aggregate property to the autogenerated columns?
Thanks!
| for (int i = 2; i < this.RadGrid.MasterTableView.AutoGeneratedColumns.Length; i++) | |
| { | |
| GridBoundColumn col = this.RadGrid.MasterTableView.AutoGeneratedColumns[i] as GridBoundColumn; | |
| col.Aggregate = GridAggregateFunction.Sum; | |
| } | |
| <Telerik:RadGrid ID="RadGrid" runat="server" AllowPaging="True" AllowSorting="True" | |
| GridLines="None" Height="500px" OnNeedDataSource="RadGrid_NeedDataSource" ShowFooter="false" | |
| ShowGroupPanel="false" PageSize="50" Width="100%" Visible="false"> | |
| <ClientSettings> | |
| <Scrolling AllowScroll="True" FrozenColumnsCount="2" UseStaticHeaders="True" /> | |
| </ClientSettings> | |
| <MasterTableView ShowGroupFooter="true" GroupLoadMode="Client" TableLayout="Auto"> | |
| <GroupByExpressions> | |
| <Telerik:GridGroupByExpression> | |
| <GroupByFields> | |
| <Telerik:GridGroupByField FieldName="Group" FieldAlias="Group" HeaderText="Group" /> | |
| </GroupByFields> | |
| <SelectFields> | |
| <Telerik:GridGroupByField FieldName="Group" FieldAlias="Group" HeaderText="Group" /> | |
| </SelectFields> | |
| </Telerik:GridGroupByExpression> | |
| </GroupByExpressions> | |
| <RowIndicatorColumn Visible="False"> | |
| <HeaderStyle Width="20px" /> | |
| </RowIndicatorColumn> | |
| <ExpandCollapseColumn Resizable="False" Visible="False"> | |
| <HeaderStyle Width="20px" /> | |
| </ExpandCollapseColumn> | |
| <EditFormSettings> | |
| <PopUpSettings ScrollBars="None" /> | |
| </EditFormSettings> | |
| </MasterTableView> | |
| <HeaderStyle Width="100px" /> | |
| </Telerik:RadGrid> | |
Thanks!