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

Group content selection

Hello,
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
Pierre 

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:
https://www.syncfusion.com/kb/4211/how-to-add-selection-to-data-rows-of-each-group-on-expanding-its-captionsummaryrow

Regards,
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
Pierre 


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

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Jai Ganesh S


Loader.
Up arrow icon