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

Header Context Menu on RadGrid

1 Answer 337 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vamshi
Top achievements
Rank 1
Vamshi asked on 08 Dec 2011, 06:13 PM
I am trying to use the header context menu of the radgrid. My requirements ask me to only show certain 'main' columns and hide certain 'additional' columns in the grid, when it is first loaded. Users should then be able to click on the header context menu and pick whichever additional columns they wish to see. This also means that users should only see the 'additional' columns, for selecting and unselecting, in the Header context menu. Is this possible? If so, how?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 13 Dec 2011, 05:05 PM
Hi Vamshi,

For this purpose, you can try hiding the items for the odd columns from the header context menu. You can handle its OnHeaderMenuShowing client-side event of RadGrid for the procedure.
Find the below article for more ideas:
http://www.telerik.com/help/aspnet-ajax/grid-header-context-menu.html

All the best,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Vamshi
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or