Strange layout issue after upgrade

2 posts, 1 answers
  1. Dirk Liebich
    Dirk Liebich avatar
    17 posts
    Member since:
    Jun 2010

    Posted 08 Feb 2011 Link to this post


    after upgrading to the latest control versions of Telerik all of my comboboxes in the ribbonbar got ugly somehow.

    Please see the screenshot attached for reference.

    I didn't touch anything and even if I create a new dropdown in the ribbon it looks the same way

    here is the Designer code for this particular control. Please note that I am using the Office2010 theme.

    Me.cmbReferenceWeek.ArrowButtonMinWidth = 16
    Me.cmbReferenceWeek.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend
    Me.cmbReferenceWeek.AutoSize = False
    Me.cmbReferenceWeek.Bounds = New System.Drawing.Rectangle(0, 0, 100, 22)
    Me.cmbReferenceWeek.DefaultValue = Nothing
    Me.cmbReferenceWeek.EditorElement = Me.cmbReferenceWeek
    Me.cmbReferenceWeek.EditorManager = Nothing
    Me.cmbReferenceWeek.Focusable = True
    Me.cmbReferenceWeek.FormattingEnabled = True
    Me.cmbReferenceWeek.MaxValue = Nothing
    Me.cmbReferenceWeek.MinSize = New System.Drawing.Size(140, 0)
    Me.cmbReferenceWeek.MinValue = Nothing
    Me.cmbReferenceWeek.Name = "cmbReferenceWeek"
    Me.cmbReferenceWeek.NullTextColor = System.Drawing.SystemColors.GrayText
    Me.cmbReferenceWeek.NullValue = Nothing
    Me.cmbReferenceWeek.OwnerOffset = 0
    Me.cmbReferenceWeek.StretchVertically = False
    Me.cmbReferenceWeek.Text = ""
    Me.cmbReferenceWeek.Value = Nothing
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 08 Feb 2011 Link to this post


    This looks like an issue that is confined to this theme and the RadComboBoxItems. The RadComboBox is actually an old control now that I believe that Telerik will be replacing in all places where it still exists with the, much more elegant RadDropDownList in an upcoming version.

    Until then, you could either change the theme, or you could add a RadDropDownList to the RadRibbonBar programatically using the RadHostItem type

    Dim radDropDown As New RadDropDownList()
    radDropDown.MinimumSize = New Size(100, 24)
    radDropDown.Visible = True
    radDropDown.DropDownStyle = RadDropDownStyle.DropDownList
    radDropDown.ThemeName = "Office2010"
    radDropDown.Items.Add("Item 1")
    radDropDown.Items.Add("Item 2")
    Dim host As New RadHostItem(radDropDown)

    Hope that helps
Back to Top