Sort a column on different field

2 posts, 1 answers
  1. Paul Evers
    Paul Evers avatar
    52 posts
    Member since:
    Oct 2011

    Posted 20 Feb 2013 Link to this post

    Hi,

    I have a RadGrid in which a column represents the status. I display a label for the status.
    When the user clicks on the column I want the data to be sorted on a field (priority) that is not displayed. This priority-field is part of the datatable attached to the grid.
    Is this possible and how do I achieve this?

    Paul
  2. Answer
    MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 20 Feb 2013 Link to this post

    Hi Paul,

    This is definitely possible. Try following these steps to create custom sorting based off different criteria than the data bound to the column clicked on. You will be editing the SortCommand event handler to apply your specific sorting.

    Good luck,
    Master Chief 
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top