RadComboBox height incorrect when text is too wide

3 posts, 0 answers
  1. Shira
    Shira avatar
    23 posts
    Member since:
    Mar 2011

    Posted 19 Apr 2011 Link to this post

    I have a RadComboBox that looks fine as long as the text for the items is not wider than the width of the combobox control.  If the text overflows though, not only does a horizontal scrollbar appear on the control (which is okay), but the dropdown is shortened to a single line long so that choosing an item requires extensive scrolling.  Is there some way to prevent this behavior so the height of the control is not wrong in this situation?

    Thanks!
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Apr 2011 Link to this post

    Hello Shira,

    One suggestion is to set the Height for the RadComboBox If you do not set Height, the drop-down list sizes itself automatically based on the number of items in the list.

    Take look at the following help article for more on this.
    Controlling Appearance

    Thanks,
    Shinu.
  3. Shira
    Shira avatar
    23 posts
    Member since:
    Mar 2011

    Posted 20 Apr 2011 Link to this post

    Shinu,

    What I want is for the dropdown to size to match the number of items in the list, (as Telerik's documentation says that it will).  Unfortunately, that does not seem to be what happens in the case that there's an item with a long text.  Setting height to some hardcoded value will not accomplish that goal - I don't need the dropdown to be of a hardcoded height; I need for its height to be determined based on the number of items in the list.  The problem is that it does not work that way when the items are wider than the width of the combobox.  It seems to me this is a bug.  Is it possible for Telerik to fix the bug, or is there a workaround that will accomplish the desired result?  I'm happy to post this as a support ticket if that would be helpful.

    Thanks!
    Shira
Back to Top