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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sort Pinnable List Box and pinned items on intialization

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 06:09 AM UTC

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 07:03 AM UTC

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 04:30 AM UTC

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 12:26 PM UTC

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.

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

;