How can I disable sorting in the GROUPED columns ?

3 posts, 1 answers
  1. Nuno
    Nuno avatar
    11 posts
    Member since:
    Nov 2010

    Posted 04 Sep 2013 Link to this post


    Hi All,

    I'm looking forward to disable the sorting feature baked in the columns that become grouped as the users drag a column to the group header. I also want to remove the sort icon from the same grouped columns.

    Any suggestions?

    Thank you.

  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 06 Sep 2013 Link to this post

    Hi,

    You can set the CanUserSortGroups property of the RadGridView to False. That way the user will not be allowed to sort the Groups.  

    If you would like to remove the sorting indicator, then you should edit the template of the GridViewGroupPanelCell and change is accordingly. You can check our online documentation for a reference.

    I hope this helps.

    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. Nuno
    Nuno avatar
    11 posts
    Member since:
    Nov 2010

    Posted 06 Sep 2013 Link to this post

    Hi Didie,

    The version I'm using is so old that I don't have the CanUserSortGroups property available.

    Anyways, I was able to get around this by canceling the sort grouping event when e.Action == GroupingEventAction.Sort and I also successfully removed the sorting indicator from the template.

    Thanks for helping out.


Back to Top