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

Custom popup size for RadDropDownButton

1 Answer 186 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Itai
Top achievements
Rank 1
Itai asked on 13 Oct 2015, 08:36 AM

Hi, 

I'm using a DropDown button, and edit its items dynamically in the DropDownOpening event. 

I've tried to limit the size of the list popup using the MaxSize and MaximumSize properties of the list element, but it cuts the popup to only present the fitting items, without any scrolling bar. 

I have tried several workarounds but I'm not getting the desired result. 

 Do you have any suggestions? 

Thanks! 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 14 Oct 2015, 03:03 PM
Hi Itai,

Thank you for writing.

By design, the drop-down popup of the RadDropDownButton control is auto-sized to fit all the items it hosts. This is why it does not expose a Height property, the control considers that the height will be calculated according to the available items. Setting a minimum or maximum size, however, has a higher priority and overrides this behavior, that is why sometimes the items might be cut off and not displayed.

As an alternative solution, I can suggest you using a RadDropDownList. By setting the DropDownStyle  property to DropDownList, you will disable the editor and you will achieve a similar result as if you were using a RadDropDownButton. You will be able to also specify a height and if the items cannot fit a scroll bar will appear. Please refer to the following section of our documentation: RadDropDownList.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
DropDownList
Asked by
Itai
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or