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

[Solved] Header Row Context Menu and large column column

1 Answer 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
PJ Melies
Top achievements
Rank 1
PJ Melies asked on 03 Nov 2011, 10:47 PM
We're using header row context menus on our RadGridViews like the demo at http://demos.telerik.com/silverlight/#GridView/HeaderContextMenu.  However, we have a grid with an exceptionally large number of columns and as a result the context menu for column selection is too tall to fit on the screen.  Is there a way to make the context menu scrollable?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 04 Nov 2011, 10:30 AM
Hello PJ Melies,

You can easily add the scrolling functionality to RadContextMenu. You need to edit the two header templates for RadMenuItem and add a ScrollViewer around the ItemsPresenter. Then add the Style as ItemContainerStyle for RadContextMenu.

This approach is illustrated in the attached basic sample. Please, search for the word NOTE to check the exact modified spots.

I hope this will be helpful.

All the best,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
GridView
Asked by
PJ Melies
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or