To Reproduce: this.AllowAero = false; this.radRibbonBar1.RibbonBarElement.RibbonCaption.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; this.radRibbonBar1.RibbonBarElement.RibbonCaption.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
When RadGallery is collapsed there are missing scroll buttons arrow. Also hover state of the gallery items is missing.
The order of the tabs under the 'Edit CommandTabs' dialog is wrong after deleting all the contextual tabs.
To reproduce: Create a RadRibbonForm Add tab, groups and buttons Add an ImageList and changed the buttons ImageKey Minimized the ribbon Click the tab Workaround: Use the image property of the button - buttonElement.Image = Image.FromFile(@"image.png");
Steps to reproduce: 1. Add a RadRibbonBar to a form 2. Set it to be in Backstage mode 3. Add several items in the Backstage menu 4. Set their text to contain the & sign and set UseMnemonics to true on each menu item Run the project and press Alt you will see that the letters preceded by an & are not underscored.
Workaround: public Form1() { InitializeComponent(); this.radRibbonBar1.KeyTipShowing+=radRibbonBar1_KeyTipShowing; } private void radRibbonBar1_KeyTipShowing(object sender, CancelEventArgs e) { RadButtonElement b = sender as RadButtonElement; if (b!=null && b.Enabled==false) { e.Cancel = true; } }
When you set padding to the Backstage View and then undo this by pressing Ctrl+Z, the setting is reset, but the control is not updated.
Put a textbox and RadRibbonBar on a form with enabled key map. Press Alt + 64. You should get "@" in the textbox. Instead, you get the key tips displayed. Workaround: public class MyRadRibbonBar : RadRibbonBar { protected override ComponentInputBehavior CreateBehavior() { return new MyRibbonBarInputBehavior(this); } public override string ThemeClassName { get { return typeof(RadRibbonBar).FullName; } set { } } } class MyRibbonBarInputBehavior : RadRibbonBar.RibbonBarInputBehavior { public MyRibbonBarInputBehavior(RadRibbonBar owner) : base(owner) { } protected override bool SetInternalKeyMapFocus() { if ((this.Owner as RadRibbonBar).ContainsFocus) { return base.SetInternalKeyMapFocus(); } return false; } }
To reproduce: Add a RadRibbonBar to a Form. Add a RadTextBox to the bottom of the Form. Start the application, click the textbox and press the alt key. You will see that the focus will be taken away. This does not allow you to input key combinations into RadTextBox, such as Alt + 457. Workaround: Use the following custom RadRibbonBar: public class MyRadRibbonBar : RadRibbonBar { protected override ComponentInputBehavior CreateBehavior() { return new MyRibbonBarInputBehavior(this); } public override string ThemeClassName { get { return typeof(RadRibbonBar).FullName; } set { } } } class MyRibbonBarInputBehavior : RadRibbonBar.RibbonBarInputBehavior { public MyRibbonBarInputBehavior(RadRibbonBar owner) : base(owner) { } protected override bool SetInternalKeyMapFocus() { if ((this.Owner as RadRibbonBar).ContainsFocus) { return base.SetInternalKeyMapFocus(); } return false; } }
FIX. RadRibbonForm - theme is not applying correctly, when some changes are made to ribbon button while RadRibbonBar is collapsed. Steps to reproduce: 1. Add button to some ribbon group. 2. Collapse the ribbon. 3. Disable this button. 4. Enable this button. 5. Expand the ribbon. Workaround - subscribe to ExpandedStateChanged event and reapply the theme. For example: this.radRibbonBar1.ExpandedStateChanged += new EventHandler(radRibbonBar1_ExpandedStateChanged); void radRibbonBar1_ExpandedStateChanged(object sender, EventArgs e) { this.radRibbonBar1.ElementTree.ApplyThemeToElementTree(); }
To reproduce: - Set the theme and show the help button. Workaround: Hide the fill and the border in Visual Style builder
To reproduce: 1. Add a RadRibbonBar with a RadDropDownListElement and some other elements. 2. Use the following code: for (int i = 0; i < 5; i++) { RadListDataItem item = new RadListDataItem(); item.Text = "Item" + i; this.radDropDownListElement1.Items.Add(item); } this.radRibbonBar1.EnableKeyMap = true; this.radDropDownListElement1.KeyTip = "S"; this.radDropDownListElement1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; 3. Press Alt, then 2. You will see the key tips for the drop down and its sibling items. 4. Press S. You are expected to be navigated to the RadDropDownListElement, but are not. Here it is illustrated the behavior: http://screencast.com/t/Qmvqufznjt
To reproduce: - Add a tab to a RadRibbonForm form. - Collapse the ribbon and press the Alt key to show the KeyTips. - Select a tab by pressing the corresponding key. - You will notice that the tab is not expanded. Workaround: void radRibbonBar1_KeyTipActivating(object sender, CancelEventArgs e) { keyExpanded = true; } void radRibbonBar1_Click(object sender, EventArgs e) { keyExpanded = false; } bool keyExpanded = false; void radRibbonBar1_CommandTabSelected(object sender, Telerik.WinControls.UI.CommandTabEventArgs args) { if (!radRibbonBar1.Expanded && keyExpanded) { radRibbonBar1.Expanded = true; } }
Steps to reproduce: 1.Open the ThemeViewer and select a random theme (e.g. TelerikMetro) 2.Click the "Show Form" button, related to "ribbonbar & office 2007 app menu, status strip". As a result a RadRibbonForm is shown. Notice that it has a form icon and a QuickAccessToolBar. 3.Click on the arrow button in the QuickAccessToolBar and select "Show below the Ribbon". Note that the BackColor behind the form's icon is not correct. Workaround: this.radRibbonBar1.QuickAccessToolBar.RadPropertyChanged += QuickAccessToolBar_RadPropertyChanged; private void QuickAccessToolBar_RadPropertyChanged(object sender, Telerik.WinControls.RadPropertyChangedEventArgs e) { if (e.Property.Name == "QuickAccessToolbarBelowRibbonProperty") { if (this.radRibbonBar1.RibbonBarElement.QuickAccessToolbarBelowRibbon == true) { this.radRibbonBar1.RibbonBarElement.RibbonCaption.Margin = new Padding(-15, 0, 0, 0); } else { this.radRibbonBar1.RibbonBarElement.RibbonCaption.Margin = new Padding(0); } } }
To reproduce: 1.Create a new Visual C# -> Telerik Windows Forms Application 2.Drag a RadRibbonBar control onto RadForm1 3.Create a single tab "First Tab" (otherwise you cannot collapse the ribbon) 4.Drag a button onto the form and add the following code to the click event handler: RibbonTab tab = new RibbonTab("Test"); this.radRibbonBar1.CommandTabs.Add(tab); tab.IsSelected = true; 5.You should end up with something like the attached png file. 6.Run the project and click the button. You should see the new tab is created and selected. 7.Close the project and run it again. This time, collapse the ribbon before clicking the button. No new tab is visible on the ribbon. Even if you click on the [First Tab] to show the full ribbon. 8.Click the expand ribbon button on the right and the new tab will then appear. Workaround: bool isExpanded = this.radRibbonBar1.Expanded; this.radRibbonBar1.Expanded = true; RibbonTab tab = new RibbonTab("Test " + this.radRibbonBar1.CommandTabs.Count); this.radRibbonBar1.CommandTabs.Add(tab); tab.IsSelected = true; this.radRibbonBar1.Expanded = isExpanded;
To reproduce: public Form1() { InitializeComponent(); this.AllowAero = false; this.RibbonBar.Expanded = false; ThemeResolutionService.ApplicationThemeName = "TelerikMetro"; }
If the ribbon is collapsed and the user clicks a command tab to show the ribbon, and then uses Alt-Tab or another non-mouse method to switch to another application, the ribbon menu is 'stuck' and shows above all other windows. Switching back to the ribbon application and clicking will hide the ribbon. Using the mouse to click to another application does not have the same issue.
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: Add a ribbon bar with tabs and items inside. Press alt key and select some tab, in some tabs the children items KeyTIps will not appear.