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

SortDescriptors in GridView have mixed item types

2 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 05 Jun 2013, 04:40 PM
Not all of the items in SortDescriptors of my GridView are of type  ColumnSortDescriptor . Some are of type SortDescriptor, which has no Column property. It appears that these columns are the ones that  I specified SortingState . Only the columns where I specified sorting through the UI get ColumnSortDescriptor 
I'm trying use Persistence for my grid. How can I tell what column the sort descriptors is for when It is just a SortDescriptor and not a ColumnSortDescriptor?


2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 07 Jun 2013, 11:48 AM
Hello,

The SortDescriptor has a Member property which is the name of the property it sorts on.

Regards,
Rossen Hristov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 07 Jun 2013, 03:43 PM
Ok, I guess I can assume that the sort path will be unique among the columns. It sure complicates things with mixed member types.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
David
Top achievements
Rank 1
Share this question
or