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

[Solved] ColumnContextMenu question

2 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steven
Top achievements
Rank 1
Steven asked on 09 Feb 2012, 11:15 PM
Hello, i would like to use the ColumnContextMenu feature to show/hide columns on demand in a project I am working on.  The grid i would like to use it in is known for having many columns to choose from.  This creates a context menu that pops up and scrolls way off the screen which makes for a less than desireable experience.  My question is, is there any way to format the context menu?  Perhaps with a scroll bar or even wrap the columns so that the user doesn't have to scroll way down to find the column they are looking for.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Feb 2012, 10:47 AM
Hi Steven,

You can use the following CSS rule to limit the height of the Grid column context menu:

#GridID_contextMenu
{
        max-height: .... ;
        overflow-x: hidden;
        overflow-y: auto;
}

GridID should match the Grid's Name (i.e. client id).

Regards,
Dimo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Steven
Top achievements
Rank 1
answered on 10 Feb 2012, 02:38 PM
Thanks so much, that works perfectly!
Tags
Grid
Asked by
Steven
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Steven
Top achievements
Rank 1
Share this question
or