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

Strange layout issue after upgrade

1 Answer 28 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Dirk Liebich
Top achievements
Rank 1
Dirk Liebich asked on 08 Feb 2011, 06:07 PM
All,

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 08 Feb 2011, 06:34 PM
Hello,

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)
Me.RadRibbonBarGroup1.Items.Add(host)

Hope that helps
Richard
Tags
RibbonBar
Asked by
Dirk Liebich
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or