Binding sort column ?

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    16 posts
    Member since:
    Dec 2011

    Posted 03 Dec 2014 Link to this post

    I'm using MVVM and need for my viewmodel to be aware of which column the gridview is currently sorted by as well as the sort direction.  Are there any elegant ways to do this (preferable by binding) ?  I know I can intercept the sorting events in the code behind but I'd rather not do that if possible.

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 04 Dec 2014 Link to this post

    Hi Sam,

    You can find all the information related to the currently applied sorting in RadGridView through its RadGridView.SortDescriptors collection. In case the bound source collection is a QueryableCollectionView, then you can also use the respective  QueryableCollectionView.SortDescriptors

    I hope this helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top