Combine SfListView grouping with multiple selection

Hi All,


I’m currently developing a feature to assigning tasks using expandable listview, and I’m interested in SfListView’s Expand/Collapse feature.


I create a list of assignments by grouping by name, and create a custom view that consist of a checkbox, a label, and an expand/collapse icon, as the attached image.


In the SfListView documentation described how to use multiple selection and how to grouping.


I have some questions:

  • In the case that i’m currently working on, is it possible to combine the grouping with multiple selection?
  • How to get the items in the group header when checkbox checked, and check all items in the group? Is there an event that can handle it?
  • Does SfListView have GroupShortName like Xamarin.Forms ListView?

Thanks,


Rewaldy



Attachment: Simulator_Screen_Shot__iPhone_8__20171204_at_16.30.49.png_e1426bd2.zip

5 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team December 5, 2017 05:16 PM UTC

Hi Rewaldy, 
 
We have analyzed your requirement “Provide support for selecting all grouped items by selecting its GroupHeader”. As this feature is not available in our product, we have considered this as a feature request and added it to our feature request list. 
 
Note: Feature implementation is tentative and not a commitment on our parts. We do not have immediate plans for this feature implementation due to preplanned tasks. We will update you once the feature has been implemented. 
 
Regards, 
G.Muthu Kumaran. 



RE Rewaldy December 6, 2017 11:02 AM UTC

Hi Muthu,

Thanks for your response. 

I've created a custom view with checkbox. When the GroupHeader checked, will change the data in SfListView DataSource.
The status data in the child group has changed, but the view doesn't change when it has been bound.
Here I attach an example code.

Thanks,
Rewaldy

Attachment: SampleCode_a0047a42.zip


MK Muthu Kumaran Gnanavinayagam Syncfusion Team December 7, 2017 12:57 PM UTC

Hi Rewaldy, 
 
We have analyzed the attached example code from our side. We regret to inform that SfListView GroupHeader items will be of GroupResult type and this type does not have any particular property to maintain the value of its Items. As SfListView is totally developed under Virtualization concept, it creates the element only which are in view on initial loading and while scrolling, we have cache the created elements and recycled it by updating only the BindingContext for each SfListView item to improve the layout performance and scrolling performance in each platforms. So while scrolling the CheckBox image which you have selected will not be maintained in that particular position and will be recycled again in some other GroupHeader item. As there are no possible workaround for your requirement, we have considered it as a new feature request at our end. 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu Kumaran. 



RE Rewaldy December 11, 2017 01:58 AM UTC

Hi Muthu,

Thanks for your support. It might be better if it becomes a new feature for SfListView.
But for now, I've found another way to implement it using XF ListView.

Thanks & Regards,

Rewaldy


MK Muthu Kumaran Gnanavinayagam Syncfusion Team December 11, 2017 04:50 AM UTC

Hi Rewaldy, 
 
Thanks for the valuable response. 
 
Regards, 
G.Muthu Kumaran. 


Loader.
Up arrow icon