Custom popup size for RadDropDownButton

2 posts, 0 answers
  1. Itai
    Itai avatar
    2 posts
    Member since:
    Oct 2015

    Posted 13 Oct 2015 Link to this post


    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? 


  2. Hristo
    Hristo avatar
    1522 posts

    Posted 14 Oct 2015 Link to this post

    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.

    Hristo Merdjanov
    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
Back to Top