Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
check all checkboxes by column
posted

Hi,

I just can figure out how to check all checkboxes by column.

I got 5 different checkbox columns
Instead of checkin them all I want them to be checked by column header,

any1 got a idea on this works?

 

<ig:WebDataGrid ID="WebDataGrid1" runat="server" EnableAjax="False"
    Height="350px" Width="637px" AutoGenerateColumns="False">
    <Columns>
        <ig:BoundDataField DataFieldName="UserID" Key="UserID" Hidden="True">
            <Header Text="UserID" />
        </ig:BoundDataField>

        <ig:BoundDataField DataFieldName="Username" Key="Username" Width="90px">
            <Header Text="Username" />
        </ig:BoundDataField>

        <ig:TemplateDataField Key="Algemeen" Width="90px">
        <ItemTemplate>
        <div style="text-align: center;">
               <asp:CheckBox runat="server"  ID="key_Algemeen" /></div>
        </ItemTemplate>
            <HeaderTemplate>
                <div style="text-align: center;">
                    <asp:Label ID="Label2" runat="server" Text="Algemeen"></asp:Label>
                    <input type="checkbox" name="SelectAlgemeen" onclick="Check(this);" />
                </div>
                </div>
            </HeaderTemplate>
        </ig:TemplateDataField>
     
        <ig:TemplateDataField Key="Financieel" Width="90px">
        <ItemTemplate>
        <div style="text-align: center;">
               <asp:CheckBox runat="server"  ID="key_Financieel" /></div>
                      </ItemTemplate>
            <HeaderTemplate>
                <div style="text-align: center;">
                    <asp:Label ID="Label3" runat="server" Text="Financieel"></asp:Label>
                    <input type="checkbox" name="SelectFinancieel" onclick="Check(this);" />
                </div>
                </div>
            </HeaderTemplate>
        </ig:TemplateDataField>

        <ig:TemplateDataField Key="Licentie" Width="90px">

        <ItemTemplate>
        <div style="text-align: center;">
               <asp:CheckBox runat="server"  ID="key_Licentie" /></div>
 
         </ItemTemplate>
              <HeaderTemplate>
                  <div style="text-align: center;">
                      <asp:Label ID="Label3" runat="server" Text="Licentie"></asp:Label>
                      <input type="checkbox" name="SelectLicentie" onclick="Check(this);" />
                  </div>
                  </div>
              </HeaderTemplate>
        </ig:TemplateDataField>

        <ig:TemplateDataField Key="Applicatie" Width="90px">
        <ItemTemplate>
        <div style="text-align: center;">
               <asp:CheckBox runat="server"  ID="key_Applicatie" /></div>

         </ItemTemplate>
              <HeaderTemplate>
                  <div style="text-align: center;">
                      <asp:Label ID="Label3" runat="server" Text="Applicatie"></asp:Label>
                      <input type="checkbox" name="SelectApplicatie" onclick="Check(this);" />
                  </div>
                  </div>
              </HeaderTemplate>
        </ig:TemplateDataField>

        <ig:TemplateDataField Key="UitDienst" Width="90px">
        <ItemTemplate>
        <div style="text-align: center;">
               <asp:CheckBox runat="server"  ID="key_UitDienst" /></div>
         </ItemTemplate>
              <HeaderTemplate>
                  <div style="text-align: center;">
                      <asp:Label ID="Label3" runat="server" Text="Uit Dienst"></asp:Label>
                      <input type="checkbox" name="SelectUitDienst" onclick="Check(this);" />
                  </div>
                  </div>
              </HeaderTemplate>
        </ig:TemplateDataField>
    </Columns>
    <Behaviors>
        <ig:Sorting>
        </ig:Sorting>
    </Behaviors>
</ig:WebDataGrid>

Parents
No Data
Reply Children
No Data