Configure the value of the checkbox in a header template of a telerik radgrid

0

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>
    
asked by Angie Villa 08.05.2018 в 22:18
source

0 answers