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

How to fix breaking change to ISortDescriptor?

6 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dan Kinchen
Top achievements
Rank 1
Dan Kinchen asked on 11 Nov 2010, 03:18 PM
Hello,

I suppose this isn't specific to the RadGridView, but the breaking change is the same so I'll ask here.  I'm using QueryableCollectionView to support dynamic sorting in a RadGridView.  The QueryableCollectionView has a SortDescriptors collection that used to return a collection of type SortDescriptor.  Now it returns a collection of type ISortDescriptor.  The problem?  ISortDescritpor doesn't have a definition for SortMember on it.  The ListSortDirection is still there, but now you can't tell which column it's sorting on.

Is this a huge oversight or is there some simple code change I need to make to fix this?

6 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 11 Nov 2010, 03:30 PM
Hello Dan Kinchen,

 As detailed here, RadGridView now generates ColumnSortDescriptor objects when sorting is performed in the UI. You need to check if the ISortDescriptor is a ColumnSortDescriptor. If so, you can directly query its Column property to see which column has been sorted.

 There are now three types of sort descriptors - the existing SortDescriptor, the new ColumnSortDescriptor, as well as the lambda-backed SortDescriptor<TElement, TKey>. All are supported by the RadGridView's data engine. You can even create your own SortDescriptor by implementing ISortDescriptor so that you have more control over sorting.

All the best,
Yavor Georgiev
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
Dan Kinchen
Top achievements
Rank 1
answered on 12 Nov 2010, 06:07 PM
Ok, that fixes that issue.  However, another behavior has changed.   The CollectionChanged event on the Telerik.Windows.Data.QueryableCollectionView used to fire when the user paged via a bound RadDataPager.  In the current version it does not.  I tried listening to the PageChanged event and that doesn't fire either.  Thus pagination on all of my grids are currently broken.  Any suggestions?
0
Dan Kinchen
Top achievements
Rank 1
answered on 15 Nov 2010, 03:35 PM
Any answer on this?  If not I'm going to have to back-rev to a previous version of the Telerik controls until there's a fix/workaround to this issue.
0
Yavor Georgiev
Telerik team
answered on 15 Nov 2010, 03:39 PM
Hi Dan Kinchen,

 This is very strange and we are not aware of such a problem. Could you please open a separate support ticket for the paging issue and attach an application that reproduces the problem there?

Sincerely yours,
Yavor Georgiev
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
Kathleen
Top achievements
Rank 1
answered on 16 Nov 2010, 04:37 PM
When will the documentation be updated to reflect the breaking changes?

http://www.telerik.com/help/silverlight/gridview-multiple-column-sorting.html
0
Veselin Vasilev
Telerik team
answered on 19 Nov 2010, 03:33 PM
Hi Kathleen,

The online documentation will be updated next week.

Sincerely yours,
Veselin Vasilev
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Tags
GridView
Asked by
Dan Kinchen
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Dan Kinchen
Top achievements
Rank 1
Kathleen
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or