"Select all" on grouped grid with manual operations

1 Answer 29 Views
Grid
Rayko
Top achievements
Rank 1
Iron
Iron
Iron
Rayko asked on 24 Apr 2025, 08:37 AM | edited on 24 Apr 2025, 08:45 AM

Hi,

I use grouping on a grid with manual operations and want to select all items in the grid. This works for the ungrouped data. But once the data are grouped the checkbox for selecting all items behaves strange.

Is there a way around that?

A sample can be found here: https://blazorrepl.telerik.com/mJYeQIas44WKo5F346

 

Best regards,

Rayko

1 Answer, 1 is accepted

Sort by
0
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
answered on 24 Apr 2025, 11:49 AM | edited on 24 Apr 2025, 11:50 AM

I agree that the behavior seems odd, and it does look like a bug. However, if you change the value of the SelectAllMode parameter of the GridCheckboxColumn component from All to Current, it seems to work correctly.

Here’s a an explanation from the documentation about SelectAllMode:

Determines if the header cell checkbox selects all rows on the current page, or all rows in the Grid. Current selects the visible rows on the current page. All selects all the data items, including ones that may be currently filtered out. All requires the Grid to be data-bound via its Data parameter, and not OnRead. When using OnRead, the two SelectAllModes behave identically, because the Grid controls only one page of items.


So, if you’re using OnRead to load the Grid data, it's best to use SelectAllMode.Current.

Regards,
Anislav Atanasov

Tags
Grid
Asked by
Rayko
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Share this question
or