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

Custom sort order and multi column sorting

2 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anan
Top achievements
Rank 1
Anan asked on 07 May 2010, 06:13 PM
Hello

I am using silverlight 3 controls. I have a custom list of objects. Say

Employee
{
 int Id;
 string Name;
 string Status;
}

I need to sort Employee objects by Id Ascending and Status. The sort order for Status is not alphabetical. For instance,
Order of Status is {Draft, Approve, Waiting, Reject, Hold }.

I have seen Telerik documentation for custom sorting and multi column sorting. I was not able to combine both the requirements. Could you please provide a working example?

Thanks

2 Answers, 1 is accepted

Sort by
0
Anan
Top achievements
Rank 1
answered on 10 May 2010, 06:10 PM
Anybody...plss
0
Veselin Vasilev
Telerik team
answered on 12 May 2010, 04:58 PM
Hello Anan,

I suppose the ID values are unique and then the sorting for the Status will not take effect. You can try to sort only by Status in this case.
If they are not unique - then find attached my sample project which demonstrates that it is working correctly in that case.

Kind regards,
Veskoni
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Anan
Top achievements
Rank 1
Answers by
Anan
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or