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

Sort a column on different field

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul Evers
Top achievements
Rank 2
Paul Evers asked on 20 Feb 2013, 01:52 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
MasterChiefMasterChef
Top achievements
Rank 2
answered on 20 Feb 2013, 03:56 PM
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 
Tags
Grid
Asked by
Paul Evers
Top achievements
Rank 2
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Share this question
or