This is a migrated thread and some comments may be shown as answers.

Sorting in a DataBoundListBox?

2 Answers 84 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 03 Mar 2011, 12:17 AM
My listbox is bound to an ObeservableCollection.

Now I would like to sort the list items.
I know, I could sort the ObeservableCollection directly (not the easiest and fastest way in WP7).

My idea was to use it like the JumpList.
But it seems the DataBoundListBox doesn't expose the RadCollectionViewSource
and I didn't find a way to use RadCollectionViewSource directly and bind the DataBoundLiist to it.

So what would be the "Telerik way" to make the list box sortable?
Thanks for any suggestion.

Eric

2 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 03 Mar 2011, 10:43 AM
Hi Eric,

Thanks for contacting us and for your questions.

Currently, the RadDataBoundListBox does not support sorting operations. We will consider this but I cannot give an exact time frame or a promise when this will be implemented.

You can either sort the data source collection by yourself or simply use the RadJumpList as a list box control and use the SortDescriptors  property. If you do not have data groups in your scenarios, the RadJumpList will behave in pretty much the same way as the RadDataBoundListBox control.

I hope this helps.

Do not hesitate to get back to us in case of further questions.

Regards,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Eric Schoenholzer
Top achievements
Rank 2
answered on 03 Mar 2011, 04:46 PM
Thanks, the RadJumpList works fine.

May I give suggestion for the
GenericSortDescriptor
and
PropertySortDescriptor
?

Would be nice to have constructors with the SortMode property as additional parameter.

Thanks
Eric
Tags
DataBoundListBox
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Eric Schoenholzer
Top achievements
Rank 2
Share this question
or