Sorting Column Chooser

7 posts, 0 answers
  1. Kennith
    Kennith avatar
    7 posts
    Member since:
    May 2008

    Posted 16 Nov 2009 Link to this post

    Is there a way to, through code, sort the column chooser?
  2. Jack
    Jack avatar
    2333 posts

    Posted 18 Nov 2009 Link to this post

    Hi Kennith,

    Currently, there is no way to sort the items in the column chooser. However, I will add this as a feature request and we will consider it when planning our upcoming releases. Your Telerik points have been updated accordingly.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Igor
    Igor avatar
    3 posts
    Member since:
    Apr 2008

    Posted 18 Nov 2011 Link to this post

    Hi Kennith - I have an outstanding PITS ticket for this also. Please vote on it if you still need it...
  4. Joe Sugden
    Joe Sugden avatar
    54 posts
    Member since:
    Feb 2010

    Posted 31 Jul 2014 Link to this post

    Is this available yet? I see 2 similar tickets, both marked as completed, but not sure if it's in a release.
  5. Stefan
    Stefan avatar
    2911 posts

    Posted 01 Aug 2014 Link to this post

    Hello Joe,

    Thank you for writing.

    We have introduced the sorting feature back in Q1 2012 SP1. Here is how you can set the sort order:
    radGridView1.ColumnChooser.SortOrder = RadSortOrder.Ascending;
    void radGridView1_ColumnChooserCreated(object sender, ColumnChooserCreatedEventArgs e)
        e.ColumnChooser.SortOrder = RadSortOrder.Ascending;

    Using the ColumnChooserEvent is important, as the column chooser instance is recreated on demand. This ensures that you will always work with valid instance of it.

    I hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  6. Ada
    Ada avatar
    4 posts
    Member since:
    Jul 2012

    Posted 18 Nov 2018 in reply to Stefan Link to this post

    Hi Stefan, I added this code:

     Private Sub TheList_ColumnChooserCreated(sender As Object, e As ColumnChooserCreatedEventArgs) Handles TheList.ColumnChooserCreated
            e.ColumnChooser.SortOrder = RadSortOrder.Ascending
        End Sub


    But the column chooser is not ordered, still the same as no order. I tried no order, ascending, descending, but all got the same order.

    Please help.





  7. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3952 posts

    Posted 19 Nov 2018 Link to this post

    Hello, Ada, 

    The RadGridView.ColumnChooserCreated property controls how the columns in the column chooser will be sorted. I have attached a sample project for your reference. Please refer to the attached gif file illustrating the behavior on my end with the specified version.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top