GridView: disable sort in grouping row

2 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    3 posts
    Member since:
    Dec 2011

    Posted 21 Feb 2012 Link to this post

    Hi,

    Is there a way to make the GridView's columns not sortable when they have been dropped in the grouping row? 
    I want to disable the sort capability just from the ones in the grouped by area and keep it for the column headers
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 22 Feb 2012 Link to this post

    Hello Ricardo,

    You can try handling Sorting event and cancel it for the columns you want. Another possible approach would be to set IsSortable property of GridViewDataColumn on grouping it (during Grouped event for example).
     

    All the best,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top