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.
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.
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.
Run the project and open the overflow menu. If you focus one of the editors and press the down arrow, the following error occurs:
at Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message& msg)main form contains RadCommandbar with button 'cmdNew' and other form contains RadCommandbar with button 'cmdNewR'.
Replaced button cmdNewR by cmdNew using the following function
Protected Sub ReplaceRadCommandBarButtonItem(ByVal ctlOriginal As CommandBarButton, ByVal ctlNew As CommandBarButton)
Dim owner As RadCommandBarItemsPanel = CType(ctlOriginal.Parent, RadCommandBarItemsPanel)
Dim originalIndex As Integer = owner.Children.IndexOf(ctlOriginal)
owner.Children.Remove(ctlOriginal)
owner.Children.Insert(originalIndex, ctlNew)
End Sub
The cmdNewR button in command bar will replaced by cmdNew. but click event is not hitting
Private Sub cmdNewR_Click(sender As Object, e As EventArgs) Handles cmdNewR.Click
NewFileClicked()
End Sub
Private Sub cmdNew_Click(sender As Object, e As EventArgs)
NewFileClicked()
End Sub
Just reporting problem at this time. Do not need an immediate resolution.
Problem Found: Tooltip text for command bar items (i.e. possibly in other tooltips outside of command bar) does not scale with the DPI setting along with the rest of the form. Tooltip text always appears only at 100% DPI font size and not higher.
Please note: I tested this by using two monitors set to 1) 1920x1080 at 100% scaling and 2) 3840x2160 at 200% scaling and dragging the application back and forth between the two monitors.
Workaround: Set it in code: commandBarMaskedEditBox1.CommandBarMaskedTextBoxElement.MaskType = Telerik.WinControls.UI.MaskType.Numeric; commandBarMaskedEditBox1.CommandBarMaskedTextBoxElement.Mask = "d";
To reproduce: - Run the attached project, maximize the form and click the drop-down buttons. Workaround: commandBarDropDownButton3.DropDownMenu.PopupOpening += DropDownMenu_PopupOpening; private void DropDownMenu_PopupOpening(object sender, CancelEventArgs args) { var e = args as RadPopupOpeningEventArgs; var ownerElement = (sender as RadDropDownMenu).OwnerElement; var loc = ownerElement.ElementTree.Control.PointToScreen(ownerElement.ControlBoundingRectangle.Location); loc.Y += ownerElement.ControlBoundingRectangle.Height; loc.X -= ((sender as RadDropDownMenu).Width - ownerElement.ControlBoundingRectangle.Width); e.CustomLocation = loc; }
To reproduce: - Dock the command bar inside a tool window (to left). - Add four buttons to the strip. - Set the VisibleInStrip property of the one button to false. - When the application is started the last button is outside the strip. The issue is reproduced when commandbar is docked directly in the form not just the tool window. Workaround - Use the Visibility property instead.
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); }
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: - 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: - Add RadCommanBar to a form and the shown and close the form several times.
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.
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.