Sorting in a DataBoundListBox?

3 posts, 1 answers
  1. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 02 Mar 2011 Link to this post

    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. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 03 Mar 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 03 Mar 2011 Link to this post

    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
Back to Top