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. Image for the cookie policy date

Sort Pinnable List Box and pinned items on intialization

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



4 Replies

MA Muthukumar A Syncfusion Team 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


MA Muthukumar A Syncfusion Team 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


KK Kevin Kuan 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


JR Jegan Raj M Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon