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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupBy list bound to accordion control

Thread ID:

Created:

Updated:

Platform:

Replies:

123745 Apr 18,2016 12:08 AM UTC Apr 18,2016 12:48 PM UTC UWP 1
loading
Tags: SfAccordion
Deanna Delapasse
Asked On April 18, 2016 12:08 AM UTC

Hi,

Wondering if it's possible to take this example data you sent me and and bind it to a listview and wrap that inside an Accordion control?  We were asked to collapse/expand the ListView sections, but are having difficulty accomplishing that.  Is it possible to use the accordion with the ListView inside?  We have custom controls inside the ListView to show each element and will want to keep that part.

In this example, we'd like to "group by" the customer's country.

            _orders.Add(new OrderInfo(1001, "Maria Anders", "Germany", "ALFKI", "Berlin"));
            _orders.Add(new OrderInfo(1002, "Ana Trujilo", "Mexico", "ANATR", "México D.F."));
            _orders.Add(new OrderInfo(1003, "Antonio Moreno", "Mexico", "ANTON", "México D.F."));
            _orders.Add(new OrderInfo(1004, "Thomas Hardy", "UK", "AROUT", "London"));
            _orders.Add(new OrderInfo(1005, "Christina Berglund", "Sweden", "BERGS", "Luleå"));
            _orders.Add(new OrderInfo(1006, "Hanna Moos", "Germany", "BLAUS", "Mannheim"));
            _orders.Add(new OrderInfo(1007, "Frédérique Citeaux", "France", "BLONP", "Strasbourg"));
            _orders.Add(new OrderInfo(1008, "Martin Sommer", "Spain", "BOLID", "Madrid"));
            _orders.Add(new OrderInfo(1009, "Laurence Lebihan", "France", "BONAP", "Marseille"));
            _orders.Add(new OrderInfo(1010, "Elizabeth Lincoln", "Canada", "BOTTM", "Tsawassen"));

If possible, please let me know how to setup the bindings.  Thanks!

Sugapriya Mariappan [Syncfusion]
Replied On April 18, 2016 12:48 PM UTC

Hi Deanna,

Thank you for contacting Syncfusion Support

We have prepared a sample based on your update.In this sample we have added ListView inside SfAccordion control and grouped the collection using collectionviewsource

Please download the sample from the below link


If your requirement is different from the above sample,please provide more informationa bout your requirement

Regards,
M.Sugapriya 


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

;