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

Manual Sorting

1 Answer 50 Views
ListView
This is a migrated thread and some comments may be shown as answers.
robertgalvinjr
Top achievements
Rank 1
robertgalvinjr asked on 29 Jan 2010, 03:45 PM
I am trying to figure out a way that I can manually sort a radlistview. The problem I have is that the database does not contain the field I want to sort by. The application allows the user to determine the sort of the items in an order they determine. I could not find a way to manually add/remove items from the radlistview instead of binding to the DB, or a way to create a custom field that I can set after the data as loaded to sort on.

Any recommendations?

The scenario is there are two controls on the page both list views, one is a list of photo thumbnails, the other is a list of photos selected. As the user selects the thumbnails I want the order in the second list to be the order that they picked the photos.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 01 Feb 2010, 07:59 AM
Hello Robert,

A possible way to achieve this will be to introduce a object which to hold the needed data and the order in which the items are selected. Then you should bind the second ListView to a collection of those object and sort it on the order field.

All the best,
Rosen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ListView
Asked by
robertgalvinjr
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or