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

[Solved] Sorting gridviewcolumn when clicking on header?

3 Answers 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Iñigo
Top achievements
Rank 1
Iñigo asked on 14 Oct 2010, 05:00 PM
Hi, I have some GridViewColumns where I have a numeric value and a rectangle whose width is bound to this value. I'd like to be able to sort the grid according to this value when clicking on the column header, is that possible? In Silverlight standard datagrid I have done this by using the SortMemberPath property of the DataGridTemplateColumn, but I don't know how to do it in RadGrid, is there any way to do it?
Thanks and regards

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Oct 2010, 07:06 AM
Hello,

 We have exactly the same property. Have you tried GridViewDataColumn with templates + SortMemberPath?

Regards,
Vlad
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
0
Iñigo
Top achievements
Rank 1
answered on 15 Oct 2010, 08:38 AM
Oh, it was really easy! I don't know why I thought I had to use GridViewColumn instead of GridViewDataColumn in order to use templates...

Going on with this subject... is it possible to have the filter option in the header of a GridViewDataColumn with template?

Thanks!
0
Vlad
Telerik team
answered on 15 Oct 2010, 09:34 AM
Hi ,

 You can create custom filtering control where you can embed your own logic for filtering. Please check this demo for more info. 

All the best,
Vlad
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
Iñigo
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Iñigo
Top achievements
Rank 1
Share this question
or