I'm trying to set the value checked
of a checkbox that is inside a header
template but it does not work.
This header is in the DetailTable
of a RadGrid
of Telerik This is my code of how I'm passing the value to the checked property:
<telerik:GridTemplateColumn UniqueName="CheckBoxColumnAux"
SortExpression="CheckBoxColumnAux" AllowFiltering="false"
AutoPostBackOnFilter="false">
<HeaderTemplate>
<asp:CheckBox ID='SelectHeaderCheckBoxAux' runat="server"
OnCheckedChanged="chkStatus_OnCheckedChanged"
Checked='<%# Convert.ToBoolean(Eval("StateCheck_HDT")) %>' />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="SelectItemCheckBoxAux" runat="server"
OnCheckedChanged="chkStatusItem_OnCheckedChanged"
Checked='<%# Convert.ToBoolean(Eval("checkState")) %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>