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

Maximum DropDownHeight

1 Answer 243 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Etienne
Top achievements
Rank 1
Etienne asked on 08 Jan 2015, 03:41 PM
Hi,

I have a contextual menu with submenu and some of them are bound to an items source. I use DropDownHeight to limit the height of a sub menu but since the quantity of item displayed can change, it happens that I have space left at the end of my menu when there isn't a lot of item. Is there a way to set a maximum height to the drop down, that doesn't impose a minimum ?

Thank you,

Etienne

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 13 Jan 2015, 12:31 PM
Hi Etienne,

Thank you for contacting us.

I'm afraid the MenuItem doesn't provide such a property. You would need to manually set the desired MaxHeight in the MenuItemTemplate of the first Grid inside of the Popup named PART_Popup:

<Popup x:Name="PART_Popup" ...>
         <Grid Width="{TemplateBinding DropDownWidth}" Height="{TemplateBinding DropDownHeight}" MaxHeight="200">
...

However I logged this as Feature Request in our Feedback portal, so you can track and vote for the item on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/148248-implement-dropdownmaxheight-property-for-radmenuitem

Hope this helps.

Regards,
Kalin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Menu
Asked by
Etienne
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or