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

    Hi,
    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:
    http://www.telerik.com/community/code-library/aspnet-ajax/grid/selecting-all-items-in-a-group-with-a-checkbox-in-the-group-header-item.aspx
    • Add "Check All" in the header cell for a GridViewCheckBoxColumn
    http://www.telerik.com/support/kb/winforms/gridview/add-check-uncheck-all-check-box-in-the-header-cell.aspx
    • CLIENT SIDE "SelectAll" checkbox in Grouping
    http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-select-all-items-in-a-group-with-a-checkbox-in-the-group-header---client-side.aspx
    • SelectAll option in Grid Header along with individual group selection
    http://www.telerik.com/community/code-library/aspnet-ajax/grid/selectall-option-in-grid-header-along-with-individual-group-selection.aspx
    -----------------------------------------------------

    Thanks for your help.
    http://www.megasearches.com/  

  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 06 Sep 2012 Link to this post

    Hello,

    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:
    http://www.telerik.com/community/code-library/aspnet-ajax/grid/selecting-all-items-in-a-group-with-a-checkbox-in-the-group-header-item.aspx
    http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-select-all-items-in-a-group-with-a-checkbox-in-the-group-header---client-side.aspx
     http://www.telerik.com/community/code-library/aspnet-ajax/grid/selectall-option-in-grid-header-along-with-individual-group-selection.aspx

    Kind regards,
    Radoslav
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top