We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Group content selection

We are trying to achieve the following functionality with the sfDataGrid and it is proving quite difficult:
  • when the grid has groups, we want to be able to let the user select multiple groups (selecting a group should place all of its inner records within the SelectedItems)
  • opening or collapsing a group should not deselect any of its inner records
This piece of functionality can be achieved manually by opening the groups one by one and selecting all of their inner records, but this is very cumbersome and unpractical for the users which is why we would like an easy way for a user to quickly select the content of several groups.

I hope someone has already implemented such fonctionality.
Many Thanks

3 Replies

JG Jai Ganesh S Syncfusion Team April 11, 2016 07:03 AM UTC

Hi Pierre,

You can achieve your requirement for selecting the groups with records by customizing the GridSelectionController. We already have a kb regarding this and please find the kb form the following location,

Kb Link:

Jai Ganesh S

PM Pierre Marzorati April 11, 2016 02:42 PM UTC

Hi Jai,
Thank you for your reply. This sample works actually by reselecting all the elements within a group when the group is expanding, but what I need instead is for a group not to lose any selection when the group is collapsed and re-opened.
So imagine I have group A with 3 records inside it: if I select record 1 and 3, when I collapse and re-open that group, I want record 1-3 to be still selected (and the SelectedItems collection should not change when group A collapses). In other words, collapsing a group should not modify current record selection.
I hope this is clear.
Many thanks

JG Jai Ganesh S Syncfusion Team April 12, 2016 01:59 PM UTC

Hi Pierre,

A support incident to track the status of this query has been created under your account. Please log on to our support website to check for further updates


Jai Ganesh S

Live Chat Icon For mobile
Up arrow icon