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

Multi-Column Sort not updating SortDescriptors collection

7 Answers 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hugh
Top achievements
Rank 1
Hugh asked on 04 Jan 2012, 11:52 PM
I'm using a radgridview, and it doesn't appear to be working as expected when holding shift for multi-column sorting.

The headers change color and the directional carrots work, but it doesn't actually appear to resort on the columns after the first selected one.  Similarly, when checking inside the gridview's Sorted event, the SortDescriptors collection only contains the original column.


Is there some sort of simple setup I need to do in order to turn on multi-column sorting?



Note:

The gridview's ItemsSource is a CollectionViewSource (though it appears the source is set to a DataView)

I'm using RadControls for WPF Q1 2011 SP1

 

7 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 05 Jan 2012, 01:01 PM
Hello Hugh,

I've tried the described scenario and the multiple sorting works fine on my end. Can you check the attached test application? Is there something specific in your solution that may cause the problem?
 
Regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Hugh
Top achievements
Rank 1
answered on 05 Jan 2012, 04:30 PM
I apologize for the confusion.  In digging through the code, it appears the CollectionViewSource's source is actually being set to a DataView.


Per this thread: http://www.telerik.com/community/forums/wpf/gridview/multiple-column-sorting-with-collectionviewsource-and-dataview.aspx 

... it appears there's a problem with DataViews?  Has there been any action on this issue?




Note: I did run your test app (thank you for it), and it works as expected.

0
Yordanka
Telerik team
answered on 05 Jan 2012, 04:58 PM
Hello Hugh,

Indeed, there was such a problem with Q1 2011 SP1 version of the RadGridView. It was fixed in the versions after this one. In order to get it resolved, you need to upgrade to more recent version.
 
Regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Hugh
Top achievements
Rank 1
answered on 05 Jan 2012, 05:06 PM
Ah thank you.
0
Roy
Top achievements
Rank 1
answered on 10 Aug 2017, 05:55 PM

I'm having the same problem and tried Yordanka's project and it doesn't work either...

Please help.

0
Stefan
Telerik team
answered on 15 Aug 2017, 01:47 PM
Hi Roy,

Thanks for the image provided.

I am investigating the case, but I need a little more time to come up with a statement. I will update you as soon as possible. Hopefully, this will be tomorrow.

Thanks in advance for understanding.

Regards,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Roy
Top achievements
Rank 1
answered on 15 Aug 2017, 01:51 PM
Hi Stefan, never mind false alarm. I've figured it out. Thanks.
Tags
GridView
Asked by
Hugh
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Hugh
Top achievements
Rank 1
Roy
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or