This is a migrated thread and some comments may be shown as answers.

hide/unhide grid columns

4 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sonu
Top achievements
Rank 1
Sonu asked on 17 Oct 2010, 05:54 AM
Hi


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?


Regards
Sonu

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Oct 2010, 08:58 AM
Hello,

You can check this demo for more info.

Sincerely yours,
Vlad
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
0
saw
Top achievements
Rank 1
answered on 31 Jul 2014, 08:29 AM
Hi,
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.
0
saw
Top achievements
Rank 1
answered on 01 Aug 2014, 02:57 AM
This link will guide you through overcoming the problem
WPF & silverlight 
0
Boris
Telerik team
answered on 01 Aug 2014, 03:44 PM
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.

Regards,
Boris Penev
Telerik
 
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.
 
Tags
GridView
Asked by
Sonu
Top achievements
Rank 1
Answers by
Vlad
Telerik team
saw
Top achievements
Rank 1
Boris
Telerik team
Share this question
or