1. Create a new project and open design time. 2. Add new RadRibbonBar instance. 3. Add some tabs and in one of the tabs add some groups. 4. Select the last added group and try to drag it. Exception will occur.
Setting the AutoSize property of RadRibbonBarGroup to false and resizing the group at design-time crashes VS.
To reproduce: - add RadRibbonBar containing a Contextual tab group (composed of four tabs); - add several RadRadioButton-s indicating which tab to be visible/collapsed: private void radRadioButton1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args) { if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On) { this.ribbonTab1.Visibility = Telerik.WinControls.ElementVisibility.Visible; } else { this.ribbonTab1.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; } } As a result, when some tab is collapsed, contextual tab group width is not changed. ====================== Workaround: set collapsed tab width to 0 and update ribbon captions's layout: ribbonTab1.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ribbonTab1.Size = new Size(0, this.ribbonTab1.Size.Height); radRibbonBar1.RibbonBarElement.InvalidateMeasure(true); radRibbonBar1.RibbonBarElement.UpdateLayout(); radRibbonBar1.RibbonBarElement.RibbonCaption.CaptionLayout.InvalidateMeasure(true); radRibbonBar1.RibbonBarElement.RibbonCaption.CaptionLayout.UpdateLayout();
FIX. RadRibbonBar - setting the Font property of the control is not taken into consideration.
To reproduce 1. Add a form with ribbon 2. Add one tab 3. Go to Code View 4. Go back to design time and add a group and a button in the group 5. Close design time and reopen it => the items are missing
Once elements are added to RadRibbonBar and the designer is closed and reopened, elements from RadRibbonBar cannot be selected.
The drop down of QuickAccessToolBar does not close when its drop down button is clicked while the drop down is opened
To reproduce: - Set the Windows theme to Windows 7 Basic - Start a RadRibbonForm and maximize it Workaround: void Form1_Resize(object sender, System.EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.RibbonBar.RibbonBarElement.IconPrimitive.Padding = new Padding(5, 5, 0, 0); } else { this.RibbonBar.RibbonBarElement.IconPrimitive.Padding = Padding.Empty; } }
To reproduce: Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load For index = 1 To 10 Dim Temp As New RadButtonElement Temp.Image = Image.FromFile("C:\Program Files (x86)\Telerik\RadControls for WinForms Q3 2012\Examples\QuickStart\Resources\1RibbonMenuNewMagenta.png") Temp.TextImageRelation = TextImageRelation.ImageAboveText Temp.ImageAlignment = ContentAlignment.MiddleCenter Temp.Text = "Test" RadRibbonBarGroup1.Items.Add(Temp) Next 'workaround 'RadRibbonBar1.RibbonBarElement.ElementTree.ApplyThemeToElement(RadRibbonBar1.RibbonBarElement) End Sub
To reproduce: - allow selection by setting ItemSelection = true - set the SelectedItem to some of the elements - set the SelectedItem to null -> the item remains selected
Work around: void radRibbonBar1_CommandTabSelecting(object sender, Telerik.WinControls.UI.CommandTabSelectingEventArgs args) { if (args.NewCommandTab.Visibility == Telerik.WinControls.ElementVisibility.Collapsed || args.NewCommandTab.Visibility == Telerik.WinControls.ElementVisibility.Hidden) { args.Cancel = true; } }
To reproduce: Create a RadRibbonForm and set its ApplicationMenuStyle to BackstageView. Start the application open the backstage, click the maximize button and then again to set the Form back to normal. You will notice that the Form cannot be set back to normal. Workaround: Manually change the WindowState of the Form. this.RibbonBar.BackstageControl.BackstageElement.TitleBarElement.MaximizeButton.MouseDown +=MaximizeButton_Click; void MaximizeButton_Click(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.WindowState = FormWindowState.Normal; } else if (this.WindowState == FormWindowState.Normal) { this.WindowState = FormWindowState.Maximized; } }
To reproduce: 1.Add a RadRibbonBar (with several groups and buttons inside a group) and a theme (i.e. TelerikMetro). 2.Apply the theme for the RadRibbonBar: setting the ThemeName property to "YourThemeName". for example: this.radRibbonBar1.ThemeName = "TelerikMetro"; 3. Run the application and resize the form in a way to collapse all ribbon groups. When you open the popup for the group, all popup elements are with incorrect style. Workaround: load the theme in the form's constructor.
To reproduce: - Add a ribbon bar to a blank form and set the theme to Office2013Light - Disable the title bar buttons: this.radRibbonBar1.MaximizeButton = false; this.radRibbonBar1.MinimizeButton = false; this.radRibbonBar1.CloseButton = false; - The buttons are still visible when the backstage view button is clicked. Workaround: radRibbonBar1.BackstageControl.BackstageElement.TitleBarElement.CloseButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden; radRibbonBar1.BackstageControl.BackstageElement.TitleBarElement.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden; radRibbonBar1.BackstageControl.BackstageElement.TitleBarElement.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
To reproduce: public Form1() { InitializeComponent(); this.AllowAero = false; this.RibbonBar.Expanded = false; ThemeResolutionService.ApplicationThemeName = "TelerikMetro"; }
To reproduce: - Press and hold right mouse button. - Move mouse cursor outside bounds of the button. - Release mouse button - the button fill is not correct.
Please refer to the attached gif file. Workaround: adjust manually the RadRibbonBarGroup.Margin when the expanded state is changed: public Form1() { InitializeComponent(); this.radRibbonBar1.ExpandedStateChanged += radRibbonBar1_ExpandedStateChanged; radRibbonBar1.Expanded = false; } private void radRibbonBar1_ExpandedStateChanged(object sender, EventArgs e) { if (this.radRibbonBar1.Expanded) { AdjustMargin(0); } else { AdjustMargin(-10); } } private void AdjustMargin(int top) { foreach (RibbonTab tab in this.radRibbonBar1.CommandTabs) { foreach (RadRibbonBarGroup group in tab.Items) { group.Margin = new Padding(0, top, 0, 0); } } }
To reproduce: 1. Add a RadRibbonBar and a RadButtonElement in one of the groups. 2. Set the RadButtonElement.UseCompatibleTextRendering property is set to false. 3. Set the RadButtonElement.Enabled property to false. You will notice that the text is hardly read compared to version Q2 2014. Workaround: Currently, the possible solution is to set the RadButtonElement.UseDefaultDisabledPaint property to false and subscribe to the EnabledChanged event where you can modify the ForeColor in order to make it gray when the button is disabled and apply a gray scaled image.
Please refer to the attached gif file. Workaround: close manually the popup by calling the this.radSplitButtonElement1.DropDownMenu.ClosePopup(Telerik.WinControls.UI.RadPopupCloseReason.Mouse) method.
To reproduce: Add RadRibbonForm and change the theme(for example to WIndows8Theme). Run the project. The system buttons are covered by the fill of RadRibbonBarElement. Workaround: Set the DrawFill property of RadRibbonBarElement to false. this.RibbonBar.RibbonBarElement.DrawFill = false;