Select all items in a grid grouping by a checkbox in the group header item

2 posts, 0 answers
  1. Ali
    Ali avatar
    24 posts
    Member since:
    Apr 2010

    Posted 02 Sep 2012 Link to this post

    My grid has a checkbox in the main grid header to select/deselect all the items in the grid (client side) and when the user unchecks any item in the grid, the grid header checkbox is unchecked. This functionality is working great as I used the built-in <telerik:GridClientSelectColumn> grid column.

    Now, I need the similar functionality for all the items in grid grouping. I need to select all the items in a group by a checkbox in the group header item (client side) and when the user unchecks any item in the grouping, the grouping header checkbox must be unchecked.

    Additionally, when the user checks the main grid checkbox, all the grouping checkboxes in the grouping headers need to be checked as well and when the user unchecks any item in a specific group, the header checkbox for that specific group need to be unchecked.

    Does, telerik grid has any built-in functionality for this? All this need to be done CLIENT SIDE.

    I have read the following threads already:
    • Selecting all items in a group with a checkbox in the group header item:
    • Add "Check All" in the header cell for a GridViewCheckBoxColumn
    • CLIENT SIDE "SelectAll" checkbox in Grouping
    • SelectAll option in Grid Header along with individual group selection

    Thanks for your help.  

  2. Radoslav
    Radoslav avatar
    1564 posts

    Posted 06 Sep 2012 Link to this post


    Unfortunately the RadGrid does not support build in the described functionality. In order to have checkboxes into the group header item and select/deselect items from the particular group you need to use some custom code like the code used into the pointed code libraries and forum posts:

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top