SortDescriptors in GridView have mixed item types

3 posts, 0 answers
  1. David
    David avatar
    48 posts
    Member since:
    Nov 2008

    Posted 05 Jun 2013 Link to this post

    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. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 07 Jun 2013 Link to this post

    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.

  3. David
    David avatar
    48 posts
    Member since:
    Nov 2008

    Posted 07 Jun 2013 Link to this post

    Ok, I guess I can assume that the sort path will be unique among the columns. It sure complicates things with mixed member types.
Back to Top