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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Group content selection

Thread ID:

Created:

Updated:

Platform:

Replies:

123671 Apr 8,2016 03:56 PM UTC Apr 12,2016 01:59 PM UTC WPF 3
loading
Tags: SfDataGrid
Pierre Marzorati
Asked On April 8, 2016 03:56 PM UTC

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 

Jai Ganesh S [Syncfusion]
Replied On 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

Pierre Marzorati
Replied On 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 

Jai Ganesh S [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;