Manual Sorting

2 posts, 0 answers
  1. robertgalvinjr
    robertgalvinjr avatar
    36 posts
    Member since:
    Jun 2006

    Posted 29 Jan 2010 Link to this post

    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.
  2. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 01 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top