SortingState in RadGridView

2 posts, 0 answers
  1. Rakesh
    Rakesh avatar
    1 posts
    Member since:
    Sep 2011

    Posted 07 Sep 2011 Link to this post

    I am not able binding a property to SortingState property of the radgridcolumn, is it possible to bind property to SortingState in the radgridview column. And i am not able clear the sortDescriptor when i am navigating from one grid view to another. I am using the same grid to bind two different collection with same columns but when i sort a column and move to other collection view sorting still persist.
    I used the sortdescriptor.clear() for that but its not working.

    Thanks for your help in advance.

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 07 Sep 2011 Link to this post

    Hi Rakesh,

     Generally sorting state of grid columns is just for visual purposes - will not sort your data. If you want have sorting synchronized between the view (grid) and your model you can use ColumnSortDescriptor.

    Regarding the clearing of the SortDescriptors, please try GridView.SortDescptors.Clear().

    I hope that this is helpful.

    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top