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

GridViewSortingEventArgs.SortPropertyName obsoleted

1 Answer 116 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tor
Top achievements
Rank 1
Tor asked on 27 Oct 2010, 02:36 PM
Hi!

I have just downloaded the RadControls_for_WPF35_2010_3_1018_Dev Beta. In this version the GridViewSortingEventArgs.SortPropertyName is marked as obsolete. My question is what we should use now when we are doing custom sorting?

Best regards
/Tor

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 28 Oct 2010, 11:01 AM
Hi Tor,

Our intention is to introduce a more complex sorting mechanism in RadGridView - sort by a Linq Expression, a lambda function, calculated column etc., not only the value of a property. This is why I advise you to tweak your logic to work with the column directly. You can get the member name from any descendant of GridViewBoundColumnBase by calling its GetDataMemberName extension method. SortPropertyName will still work, until removed completely next year, but will be blank when sorting the new GridViewCalculatedColumn.

Sincerely yours,
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
Tags
GridView
Asked by
Tor
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or