Since the settings are serialized, the buttons does not have hover, pressed and other effects. Workaround: instead of making the buttons protected, apply this setting to RadCommandBar control and expose the buttons as properties.
How to reproduce: add a pdf navigator to a form and dock it to Top, then add a pdf viewer and dock it to fill. Run the application and you will notice a gap between the navigator and the RadPdfViewer control. Workaround: instead of docking, use anchors or a TableLayoutPanel.
The issue exists with RadMenuItem as well! Workaround: public class CustomCommandBarButton : CommandBarButton { protected override void OnClick(EventArgs e) { MouseEventArgs args = e as MouseEventArgs; if (args.Button == System.Windows.Forms.MouseButtons.Left) { base.OnClick(e); } } protected override Type ThemeEffectiveType { get { return typeof(CommandBarButton); } } }
It will be convenient for our users if we introduce a CommandBarMaskedEditBox that they can add to their CommandBar at design-time.
Add the possibility to change the owner CommandBarRowElement of a CommandBarStripElement at design time.
Data-bounded CommandBarDropDownList shows only currently selected item when the CommandBarDropDownList located into overflow list. Workarround: Assign the CommandBar's BindingContext explicitly public partial class Form1 : Form { public Form1() { InitializeComponent(); this.commandBarDropDownList1.BindingContext = this.BindingContext; }
The KeyDown event for CommandBarDropDownList does not fire. The same is the situation with the DropDownListElement.
If you have a RadCommandBar instance on a form, and on the same form you have a ContextMenuStrip with one toolstripmenuitem, you will notice that you are not able to select anything from the form.
When a menu popup is opened with a shortcut its location is initially not correct. If you open the menu by clicking on it its location will be correct. If you then move the form containing the menu and use the shortcut again the location will be the last location of the menu item opened by mouse click. When a split button is in the command bar and you click on the action part the location of the popup is initially not correct. If you click on the arrow part the location will be correct and after that if you click on the action part the popup location will be again correct. If you move the form containing the command bar, containing the split button and click on the action part location of the popup will be the last location of the popup opened by arrow part click.
DisplayName property of RadCommandBarVisualElement class cannot be localized.
1. Create new project with RadCommandBar and add a button in it. 2. Set the button's AutoSize property to false. 3. Run the project and try to hide the button by clicking the overflow button.
Assign a ImageList to RadCommnandBar and add CommandBarDropDownButton to a strip. Then open the Items collection editor for this drop down button, add new RadMenuItem and attempt to assign an ImageIndex from the ImageList of the control.
To reproduce: - Remove and dispose a strip at runtime: private void BRemoveItems_Click(object sender, EventArgs e) { if (this.commandBarRowElement1.Strips.Count > 1) { if (this.commandBarRowElement1.Strips[1] is MyRadStripElement) { MyRadStripElement stripForRemoval = (MyRadStripElement)this.commandBarRowElement1.Strips[1]; this.commandBarRowElement1.Strips.Remove(stripForRemoval); stripForRemoval.Dispose(); } } } Workaround: dispose the item before remove it.
To reproduce: - Add RadCommanBar to a form and the shown and close the form several times.
To reproduce: - Add some controls to a command bar. - Get the PreferredSize like this: Console.WriteLine(radCommandBar1.PreferredSize.ToString()); Workaround: class MyCommandBar : RadCommandBar { public override Size GetPreferredSize(Size proposedSize) { if (proposedSize.Width == 0 && proposedSize.Height == 0) { return this.Size; } return base.GetPreferredSize(proposedSize); } }
To reproduce: 1. Add a RadCommandBar with several items 2. Add CommandBarTextBox and change its size to have 200 px width . 3. Set the CommandBarTextBox.TextBoxElement.TextAlign property to Right in order to align the text to the right. The designer shows the correct text alignment. However, this setting is not serialized in the designer file and when you run the application the text is left aligned.
To reproduce: 1. Run the application and click the button. A message box appears. Close the message box. 2. Minimize the form and restore it to normal state. 3. Click the button again. You will encounter an error because the CommandBarDropDownList.SelectedItem property is set to null. Workaround: private void radButton1_Click(object sender, EventArgs e) { this.commandBarDropDownList1.DropDownAnimationEnabled = false; this.commandBarDropDownList1.DropDownListElement.ShowPopup(); this.commandBarDropDownList1.DropDownListElement.ClosePopup(Telerik.WinControls.UI.RadPopupCloseReason.Mouse); Product product = this.commandBarDropDownList1.SelectedItem.DataBoundItem as Product; MessageBox.Show(product.Description); }