My problem is related to this Code Library solution for Row Selection Persistence on Paging & Filtering.
The header checkbox does not work if Grouping is enabled in the RadGrid and/or there is another RadGrid nested within in the outer RadGrid.
I've added the Group Expressions and NestedViewTemplate in the code sample to reproduce the problem. Could anyone please mention the reason why the header selection does not work in this code sample with Grouping and NestedViewTemplate ?
The header checkbox does not work if Grouping is enabled in the RadGrid and/or there is another RadGrid nested within in the outer RadGrid.
I've added the Group Expressions and NestedViewTemplate in the code sample to reproduce the problem. Could anyone please mention the reason why the header selection does not work in this code sample with Grouping and NestedViewTemplate ?
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Skin
=
"Outlook"
AllowSorting
=
"true"
AllowPaging
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"false"
ShowGroupPanel
=
"true"
PageSize
=
"6"
>
<
MasterTableView
DataKeyNames
=
"ID"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"Public"
HeaderText
=
"Grouped by Public & Private Questions"
FieldName
=
"ID"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"ID"
FieldAlias
=
"Public"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
NestedViewTemplate
>
<
telerik:RadGrid
ID
=
"RadGrid2"
runat
=
"server"
Skin
=
"Outlook"
AllowSorting
=
"true"
AllowPaging
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"false"
ShowGroupPanel
=
"true"
PageSize
=
"6"
>
<
MasterTableView
DataKeyNames
=
"ID"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ID"
UniqueName
=
"ID"
HeaderText
=
"ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Item"
AllowSorting
=
"false"
UniqueName
=
"Item"
HeaderText
=
"Item"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Date"
UniqueName
=
"Date"
HeaderText
=
"Date"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
NestedViewTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"false"
UniqueName
=
"template"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
/>
</
ItemTemplate
>
<
HeaderTemplate
>
<
asp:CheckBox
ID
=
"CheckBoxHeader"
runat
=
"server"
/>
</
HeaderTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"ID"
UniqueName
=
"ID"
HeaderText
=
"ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Item"
AllowSorting
=
"false"
UniqueName
=
"Item"
HeaderText
=
"Item"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Date"
UniqueName
=
"Date"
HeaderText
=
"Date"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowClick
=
"onRowClick"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
<
asp:HiddenField
ID
=
"HiddenField"
runat
=
"server"
/>