I have a radgrid with 2 Column of GridCheckBoxColumn View and Edit my whole project is ready only i want is that to add select all checkbox on header of radgrid. And I can not change GridCheckBoxColumn with GridTemplateColumn if I change then will face major problem.
My code is:
.aspx code
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowMultiRowSelection
=
"true"
GridLines
=
"Vertical"
OnBatchEditCommand
=
"RadGrid1_BatchEditCommand"
OnItemCreated
=
"RadGrid1_ItemCreated"
AutoGenerateColumns
=
"False"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
OnPreRender
=
"RadGrid1_PreRender"
EnableEmbeddedSkins
=
"false"
Skin
=
"Custom1"
>
<
GroupingSettings
CollapseAllTooltip
=
"Collapse all groups"
></
GroupingSettings
>
<
MasterTableView
CommandItemDisplay
=
"TopAndBottom"
EditMode
=
"Batch"
DataKeyNames
=
"FeatureID"
CommandItemSettings-ShowSaveChangesButton
=
"true"
CommandItemStyle-CssClass
=
"RadGrid_Custom1"
ForeColor
=
"#000066"
>
<
RowIndicatorColumn
Visible
=
"False"
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Created
=
"True"
>
</
ExpandCollapseColumn
>
<
BatchEditingSettings
Edittype
=
"Cell"
/>
<
CommandItemSettings
ShowAddNewRecordButton
=
"False"
ShowSaveChangesButton
=
"true"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"FeatureDesc"
FilterControlAltText
=
"Filter FeatureDesc column"
ReadOnly
=
"true"
HeaderText
=
"Feature"
UniqueName
=
"FeatureDesc"
ItemStyle-HorizontalAlign
=
"Left"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
Text
=
""
/>
</
ColumnValidationSettings
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"200px"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
Width
=
"200px"
></
ItemStyle
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
InsertImageUrl
=
"Update.gif"
UpdateImageUrl
=
"Update.gif"
CancelImageUrl
=
"Cancel.gif"
></
EditColumn
>
</
EditFormSettings
>
<
BatchEditingSettings
OpenEditingEvent
=
"MouseOver"
></
BatchEditingSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
Please help me as soon as possible with better solution.