title: How to select all checkboxes in telerik.grid used in asp.net mvc
body: <p>I am using Telerik grid. I have one column as checkbox .I want to select all checkbox in single header click or any click action how can i do that in Telerik.grid using  asp.net mvc technology</p>
  
  <pre><code>&lt;% using (Html.BeginForm("Assign", "Application", new { id = Model.ID,redirectto=HttpContext.Current.Request.Url.PathAndQuery }))
         { %&gt; 
  
      &lt;b&gt;SelectAll&lt;/b&gt;&lt;input type="checkbox" name="checkrecord" title="Records"  /&gt;
            &lt;% Html.Telerik().Grid&lt;ResourceKit.DataModel.Terminology&gt;().Name("Terminology")
                    .BindTo((IEnumerable&lt;ResourceKit.DataModel.Terminology&gt;)ViewData["Terminology"])
  
                   .Columns(columns =&gt;
                       {
                           columns.Template(term =&gt;
              {
                  %&gt;
                      &lt;input name="checkedRecords" type="checkbox" value="&lt;%=
                         term.ID %&gt;" title="checkedRecords"  /&gt;
                  &lt;%
              }).Title("Select").Width(40).HtmlAttributes(new { style = "text-align:center" });
  
                           columns.Bound(term =&gt; term.Name);
  
                       }).Pageable(paging =&gt; paging.PageSize(20)
                         .Position(GridPagerPosition.Both).Style(pagerStyles))
                         .Sortable()
                         .Scrollable()
                         .Filterable()
                         .Render(); 
                    %&gt;
                    &lt;p&gt;
                      &lt;input type="button" value="Associate" onclick="this.form.submit()"/&gt;
                  &lt;/p&gt;
      &lt;% } %&gt;
  </code></pre>
  
  <p>I have code like this Per page 20 records displayed,i have select all checkbox on click of that I have to select all checkboxes in side the grid.</p>