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

Property name from sort descriptor

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
alamb
Top achievements
Rank 1
alamb asked on 17 Oct 2011, 09:11 PM
Does anyone have an example of how to get the sort property names from a QueryableCollectionView?  I've been looking at the  ISortDescriptor.CreateSortKeyExpression method but don't know what to use for the Expression parameter it requires.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Oct 2011, 07:59 AM
Hi Alamb,

 Can you post more info about your scenario? Have you tried to cast sort descriptors to ColumnSortDescriptor/SortDescriptor to get desired property? 

Best wishes,
Vlad
the Telerik team

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

0
alamb
Top achievements
Rank 1
answered on 20 Oct 2011, 04:36 PM
I'm trying to use a custom QueryableCollectionView for server-side sorting and paging, so I need the sort properties as strings to pass to the server.  I found an sample application in this thread that almost does what I need but it doesn't work with current binaries. Unfortunately it seems that ISortDescriptor doesn't have a Member property, only CreateSortKeyExpression is available.
Tags
General Discussions
Asked by
alamb
Top achievements
Rank 1
Answers by
Vlad
Telerik team
alamb
Top achievements
Rank 1
Share this question
or