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

Sort item as another data from itemssource

1 Answer 271 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Son
Top achievements
Rank 1
Son asked on 27 Jan 2016, 09:10 AM

I have a radlistbox which has images, title and createddate of them. I showed images and title but i don't know what this listbox sort by. How can i sort listbox by createddate?

Something likes 

                                <telerik:RadGridView.SortDescriptors>
                                    <telerik:SortDescriptor Member="DateCreate" SortDirection="Ascending" />
                                </telerik:RadGridView.SortDescriptors>

of gridview.

Such as 'example.png', ListBox shows image and title, I want it to sort by created date.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 29 Jan 2016, 11:45 AM
Hello Son,

Please, check the attached sample that demonstrates how to a add the desired SortDescription to RadListBox and thus sort the items by date.

We hope this will help you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListBox
Asked by
Son
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or