This is a migrated thread and some comments may be shown as answers.

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

1 Answer 283 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 02 Sep 2012, 08:06 AM
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/  

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 06 Sep 2012, 06:51 AM
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.
Tags
Grid
Asked by
Ali
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or