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

Sort Telerik WPF GridView on Selected Items

3 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rebecca
Top achievements
Rank 1
Rebecca asked on 21 Jul 2011, 05:44 PM
I would like to sort my GridView so that the selected items appear at the top.

It appears that there is no ColumnSortDescriptor type for WPF (however after reading documentation it appears that this type exists for the Silverlight GridView control)....maybe I'm just not looking in the right namespace (it's not in the Telerik.Windows.Data namespace)

Anyways, I would love it if some could explain how I could accomplish this.


Thank you.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Jul 2011, 07:29 AM
Hello,

 Generally ColumnSortDescriptor is available for both Silverlight and WPF since Q3 2010 however I'm afraid that there is no such built-in sorting in the grid that will let selected items on the top.

Best wishes,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Rebecca
Top achievements
Rank 1
answered on 22 Jul 2011, 03:02 PM
Thank you for your reply.

I think I need to rephrase my question.
I have a GridViewSelectColumn in my GridView and I would like to sort on this column so that the "checked" items are moved to the top.
Is there no built in way to sort on this column?

Also, I am still wondering what namespace is the ColumnSortDescriptor type in?


Thanks for your help!
0
Dimitrina
Telerik team
answered on 25 Jul 2011, 06:49 AM
Hello Rebecca,

 As you know each CheckBox in the GridViewSelectColumn is bound to the IsSelected property of the corresponding row. In order to be able to sort it, you may create your own custom column as illustrated in this forum thread.

All the best,
Didie
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Rebecca
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Rebecca
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or