hide/unhide grid columns

5 posts, 0 answers
  1. Sonu
    Sonu avatar
    9 posts
    Member since:
    Sep 2010

    Posted 17 Oct 2010 Link to this post


    I have a requirement for providing user with the option to hide/unhide the grid columns (like excel columns).

    How can I implement the requirement also how could I provide buttons in columns headers to handle the show/hide feature?


  2. Vlad
    Vlad avatar
    11100 posts

    Posted 18 Oct 2010 Link to this post


    You can check this demo for more info.

    Sincerely yours,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. saw
    saw avatar
    29 posts
    Member since:
    Jun 2014

    Posted 31 Jul 2014 in reply to Vlad Link to this post

    I had go through your provided DEMO and "ColumnChooser" example code. but, what i exactly wanted is when user click left top grid header, selection (List box menu) menu to populate and choose what column he need to be hide/show. Not separate out side grid list box.
  4. saw
    saw avatar
    29 posts
    Member since:
    Jun 2014

    Posted 31 Jul 2014 in reply to saw Link to this post

    This link will guide you through overcoming the problem
    WPF & silverlight 
  5. Boris
    Boris avatar
    276 posts

    Posted 01 Aug 2014 Link to this post

    Hello Shalin,

    In order to place a button in the top left corner (the GridViewHeaderRow indicator) you will need to edit the ControlTemplate of the GridViewHeaderRow. In it you should replace the inner Border which is under the Border with x:Name="PART_IndicatorPresenter".

    Also, I attached a sample project that demonstrates the suggested approach. In addition you can check the ControlPanel online demo.

    Please let us know if this helps.

    Boris Penev
    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.
Back to Top