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

Custom sorting or SortMemberPath

1 Answer 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ping Pong Guru
Top achievements
Rank 1
Ping Pong Guru asked on 24 Jun 2013, 11:40 AM
I have a user control being used in telerik:GridViewDataColumn.CellTemplate of a grid view. The user control interpret a property value differently. For example, the requirement is to display the category name of a product, so SortMemberPath=Category being used. The user control column will display the category of the product if there is only one category. If the product belongs to more than one category, the column it should display Many. The word Many is displayed by the user control that I initially talked about. Using SortMemberPath=Category does not help the sorting because the collection of Category that the column looks for sorting does not have Many, because it is interpreted by the user control.

In my case, should I use custom sorting? Is there an example you can point me to?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Jun 2013, 11:45 AM
Hi,

You can check our online demos on custom sorting: here and here. Using custom sorting you can tell the GridView how to order/sort its items.

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Ping Pong Guru
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or