title: How to identify checkboxes of a specific column in a grid using javascript
body: <p>i already posted this question.Sorry that i failed to add any code.That thread is closed. Apologies. I'm bothering you all again. </p>
  
  <p>Anyways, i just want to identify checkboxes of a specific columns in a radgrid? i have two columns. and two buttons.if i click one button i need to check/uncheck checkboxes of that particular column alone.Kind help please?i already tried this. Now all checkboxes in the grid are getting checked/unchecked.</p>
  
  <p>Please find the code below.</p>
  
  <pre><code>var inputs = document.getElementsByTagName("input"); //or document.forms[0].elements;
  
     for (var i = 0; i &lt; input.length; i++) 
     {
         if (input[i].type == "checkbox") 
         {
             if (input[i].checked) {
                 input[i].checked = false;
             }
             else 
             {
                 input[i].checked = true;
             }
         }
     }
  </code></pre>
  
  <p>Please tell me on how can i pick check boxes of a particular column alone? </p>
  
  <p>HTML Code:</p>
  
  <pre><code>    &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  
  
  &lt;head id="Head1" runat="server"&gt;
     &lt;script language="javascript" type="text/javascript"&gt;
  
  
         function clickbutton()
          {
             debugger;
  
             var inputs = document.getElementsByTagName("input"); //or document.forms[0].elements;
  
             for (var i = 0; i &lt; input.length; i++) 
             {
                 if (input[i].type == "checkbox") 
                 {
                     if (input[i].checked) {
                         input[i].checked = false;
                     }
                     else 
                     {
                         input[i].checked = true;
                     }
                 }
             }   
  
  
  
         }
  
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body class="BODY"&gt;
      &lt;form id="mainForm" method="post" runat="server"&gt;
          &lt;asp:ScriptManager ID="ScriptManager1" runat="server" /&gt;
  
          &lt;!-- content start --&gt;
          &lt;telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"&gt;
              &lt;AjaxSettings&gt;
                  &lt;telerik:AjaxSetting AjaxControlID="RadGrid1"&gt;
                      &lt;UpdatedControls&gt;
                          &lt;telerik:AjaxUpdatedControl ControlID="RadGrid1" /&gt;
                      &lt;/UpdatedControls&gt;
                  &lt;/telerik:AjaxSetting&gt;
                  &lt;telerik:AjaxSetting AjaxControlID="clrFilters"&gt;
                      &lt;UpdatedControls&gt;
                          &lt;telerik:AjaxUpdatedControl ControlID="RadGrid1" /&gt;
                          &lt;telerik:AjaxUpdatedControl ControlID="clrFilters" /&gt;
                      &lt;/UpdatedControls&gt;
                  &lt;/telerik:AjaxSetting&gt;
              &lt;/AjaxSettings&gt;
          &lt;/telerik:RadAjaxManager&gt;
          &lt;telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="False" 
              AllowSorting="True" ClientSettings-Scrolling-AllowScroll="true"
              AllowFilteringByColumn="True" Width="1251px" runat="server" OnColumnCreating="RadGrid1_ColumnCreating"  
              OnItemCommand="RadGrid1_ItemCommand" 
              OnNeedDataSource="RadGrid1_NeedDataSource" Skin="Gray"
               OnItemDataBound="RadGrid1_ItemDataBound"  OnItemCreated="RadGrid1_ItemCreated"
             &gt;
              &lt;FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
              &lt;AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
              &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
              &lt;PagerStyle Mode="NumericPages" /&gt;
              &lt;MasterTableView&gt;
  
  
  &lt;RowIndicatorColumn&gt;
  &lt;HeaderStyle Width="20px"&gt;&lt;/HeaderStyle&gt;
  &lt;/RowIndicatorColumn&gt;
  
  &lt;ExpandCollapseColumn&gt;
  &lt;HeaderStyle Width="20px"&gt;&lt;/HeaderStyle&gt;
  &lt;/ExpandCollapseColumn&gt;
              &lt;/MasterTableView&gt;
  
  
              &lt;SelectedItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
              &lt;HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
  
  
  &lt;ClientSettings&gt;
      &lt;Selecting AllowRowSelect="True" /&gt;
  &lt;Scrolling AllowScroll="True"&gt;&lt;/Scrolling&gt;
  &lt;/ClientSettings&gt;
  
  &lt;FilterMenu EnableTheming="True"&gt;
  &lt;CollapseAnimation Type="OutQuint" Duration="200"&gt;&lt;/CollapseAnimation&gt;
  &lt;/FilterMenu&gt;
  
              &lt;EditItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
              &lt;ActiveItemStyle HorizontalAlign="Right" VerticalAlign="Middle" /&gt;
              &lt;FilterItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /&gt;
  
          &lt;/telerik:RadGrid&gt;
  
  
          &lt;br /&gt;
  
  
  
          &amp;nbsp;&amp;nbsp;&amp;nbsp;
          &lt;p&gt;
  
  
  
          &lt;/p&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I m creating Checkboxes and Button dynamically.</p>