I am using GroupByFields in the grid. And I want to access the values in foreach GridItem in the code behind page. how can I access that?
Following is the code.
Eg:
aspx page:
<
telerik:RadGrid ID="personalGridView" runat="server" AutoGenerateColumns="False"
AllowPaging="True" GridLines="None" AllowMultiRowSelection="true" ShowGroupPanel="False"
Skin="Office2007" OnPreRender="personalGridView_PreRender" OnPageIndexChanged="personalGridView_PageIndexChanged">
<FilterMenu EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
<PagerStyle Mode="NumericPages" />
<MasterTableView>
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldAlias="Name" FieldName="Name" FormatString="" HeaderText="" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="Name" FieldAlias="Name" FormatString="" HeaderText="" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridClientSelectColumn CommandName="Select">
</telerik:GridClientSelectColumn>
<
telerik:GridBoundColumn DataField="Amount" HeaderText="Amount">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowDragToGroup="False">
<Selecting AllowRowSelect="True"></Selecting>
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
<ClientMessages DragToGroupOrReorder="Drag to group" />
</ClientSettings>
</telerik:RadGrid>
CodeBehind:
foreach
(GridItem grdItem in personalGridView.SelectedItems)
{
}