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.

Sort Pinnable List Box and pinned items on intialization

Thread ID:

Created:

Updated:

Platform:

Replies:

116444 May 26,2014 12:12 AM May 30,2014 08:26 AM WPF 4
loading
Tags: PinnableListBox
Kevin Kuan
Asked On May 26, 2014 12:12 AM

Hi,

I am facing two issues on the pinnable list box:

1.) Is there anyway i can sort the pinned list and unpinned list everytime i pin/unpin an item?
2.) How do I pinned item/items to the list on initialization?

Thanks
Kevin



Muthukumar A [Syncfusion]
Replied On May 29, 2014 02:09 AM

Hi Kevin,

Thanks for using Syncfusion products.

We have created a sample which tries to meet your requirement.Please download the sample from below location.

In this sample we have sorted the pinned items and unpinned items using PinItemsSortDescription and UnPinItemsSortDescription .

Please refer the below link :


Please let us know in case of further assistance needed.

Regards,
Muthukumar A

Attachment: PiinablelistBox_116444_2c016533.zip

Muthukumar A [Syncfusion]
Replied On May 29, 2014 03:03 AM

Hi Kevin,


Please ignore the previous update.

 

You can achieve your requirement using PinItemsSortDirection, UnPinItemsSortDirection and PinnedItems properties. You can get the more details from following online documentation link,


http://help.syncfusion.com/ug/wpf/tools/default.htm#!documents/properties16.htm

 

Please find the sample from following link.


Please let us know in case of further assistance needed.


Regards,

Muthukumar A

 



Attachment: PiinablelistBox_116444_7ffa8995.zip

Kevin Kuan
Replied On May 30, 2014 12:30 AM

Hi Muthukumar A,

Thanks for the replay, however the solution provided only sort the visual part leaving the underlying collection unsorted.

another issue is that when I add the item into pinned collection on initialization, the image doesn't change to the pinned image.

Please advice.

Thanks & best regards,
Kevin

Jegan Raj M [Syncfusion]
Replied On May 30, 2014 08:26 AM

Hi Kevin,

We have modified the sample which tries to meet your requirement. In our previous sample we have sorted the UnPinned item by SubHeader and not by the Header. In this sample we have sorted both PinnedItem and UnPinnedItem by 'Header' and also the Pinned image displayed for PinnedItem on initialization. Please download the sample from below link.

Please let us know if you need further assistance.

Regards,
Jegan Raj M

Attachment: PinnableListBox_e18bf15b.zip

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.

;