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.

CardView - Group only by predefined properties

Thread ID:

Created:

Updated:

Platform:

Replies:

119157 May 15,2015 04:38 AM Aug 13,2015 05:49 AM WPF 5
loading
Tags: CardView
Damiano
Asked On May 15, 2015 04:38 AM

Hello,
in the CardView control is it possible to define what properties can be grouped or sorted?

Thanks
Damiano

Sugapriya Mariappan [Syncfusion]
Replied On May 18, 2015 05:32 AM

Hi Damano,

We have analyzed your query and prepared a sample which tries to meet your requirement by using “GroupCards Method” and to sort the CardView control by using SortDescription . In the sample we have implemented GroupCards method in the Button Click event to Group CardViewItems by Header property and also we have sorted CardViewItems based on Header Property in Ascending Direction using SortDescription.

Please download the sample from below link

Sample link:CardViewSample.zip

Please let us know if you need any other assistance.

Regards,
M.Sugapriya

Gregory Cogneau
Replied On August 10, 2015 10:26 PM

Hello,

Can you tell me how I can set group in XAML for card view ?

Thanks
Gregory

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 11, 2015 07:29 AM

Hi Gregory,

Thank you for your update

In our implementation of the CardView control, we don't have a direct property to group the CardViewItems in XAML. But we have modify our last updated sample by creating a workaround that tries to meet your requirement. In this sample, we have implemented the attached property called "GroupHeader" which is used to group the cardview items according to its values and you can give multiple GroupHeader by seperating the values by comma.

Kindly download the sample from the below link:

Sample:CardViewSample_Modified

Please try our sample and let us know if this helps you,

Regards,
Vijayalakshmi V.R.

Gregory Cogneau
Replied On August 12, 2015 10:22 AM

Thanks for your reply !
Another question I have some problem to bind selectedItem on a cardview to my page datacontext I'm working under MVVM.

Can you help me with that ?

Thanks
Gregory

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 13, 2015 05:49 AM

Hi Gregory,

We are able to reproduce the issue "SelectedItem binding not working properly with CardView" and have logged defect report regarding this. A support incident to track the status of this defect 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

Please let me know if you have any questions.

Regards,
Vijayalakshmi V.R.

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.

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.

;