Property name from sort descriptor

3 posts, 0 answers
  1. alamb
    alamb avatar
    4 posts
    Member since:
    Jul 2010

    Posted 17 Oct 2011 Link to this post

    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. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Oct 2011 Link to this post

    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 >>

  3. alamb
    alamb avatar
    4 posts
    Member since:
    Jul 2010

    Posted 20 Oct 2011 Link to this post

    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.
Back to Top