Custom sort

4 posts, 0 answers
  1. Mark
    Mark avatar
    2 posts
    Member since:
    May 2012

    Posted 09 Aug 2013 Link to this post

    Hi,
    I am using RadDomainDataSource and WCF Services to get data from ms sql database. But I have problem with sorting because I want to implement my own sort logic (natural sort of numbers stored as nvarchar). How can I do that?

    Any advice would be greatly appreciated.
    With regards 
    Mark
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Aug 2013 Link to this post

    Hi Mark,

    When using RadDomainDataSource then paging, filtering and sorting will be performed directly on the server. 

    Still along with the control we are shipping a set of extension methods which allow you to write native LINQ expression against an entity query object. 

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Mark
    Mark avatar
    2 posts
    Member since:
    May 2012

    Posted 16 Aug 2013 Link to this post

    Hi,
    What extension method do you mean? Do you have any example I could use?

    With regards
    Mark
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 16 Aug 2013 Link to this post

    Hi,

    The pager generates Skip and Take clauses on the respective IQueryable and then they are sent for execution directly to server. You can check this forum for an example on how you can invoke them yourself.

    You can also check more information on LINQ and also the IQueryable interface, which RadGridView perfectly binds to. Please note that the RadDomainDataSource.DataView implements this interface. 

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top