To reproduce: - Set the anchor property of RadTextBox or RadDropDownList as follows: this.radTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); Workaround; Set the Autosize property to false: this.radTextBox1.AutoSize = false;
If you have a RadControl with Anchor Left, Top, Bottom, Right in a ToolWindow, the next time you close and reopen the designer in VS, this RadControl gets a bigger size.
CodedUI playback does not able to recognize a button placed in RibbonBar ButtonGroup/Group
Let's have two controls - RadLabel and RadCheckBox and a form, anchored to Bottom, Right. Show a form containing these controls in maximized mode and you will notice that the controls' location is not correct.
Right and bottom padding does not working corectly when there is TextWrap
Workaround: load the themes with ThemeResolutionService: http://www.telerik.com/help/winforms/themes-using-custom-themes.html
Wrapped text in bullet point paragraph is not aligned correctly.
No matter that is the ToggleState of the check box, when disabled always shows as ToggleState.Off. Appears with Office2007Black and probably other themes. To work around the issue, capture two images of the check box in enabled state for the On and Indeterminate state and assign those when the check box is disabled. Here is a sample: public Form1() { InitializeComponent(); radCheckBoxElement1.IsThreeState = true; radCheckBoxElement1.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On; radCheckBoxElement2.IsThreeState = true; radCheckBoxElement2.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; radCheckBoxElement3.IsThreeState = true; radCheckBoxElement3.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Indeterminate; radCheckBoxElement1.EnabledChanged += new EventHandler(radCheckBoxElement1_EnabledChanged); radCheckBoxElement2.EnabledChanged += new EventHandler(radCheckBoxElement1_EnabledChanged); radCheckBoxElement3.EnabledChanged += new EventHandler(radCheckBoxElement1_EnabledChanged); } void radCheckBoxElement1_EnabledChanged(object sender, EventArgs e) { RadCheckBoxElement checkBox = sender as RadCheckBoxElement; if (checkBox.Enabled) { checkBox.CheckMarkPrimitive.Image = null; } else if (checkBox.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On) { checkBox.CheckMarkPrimitive.Image = Resources.check; } else if (checkBox.ToggleState == Telerik.WinControls.Enumerations.ToggleState.Indeterminate) { checkBox.CheckMarkPrimitive.Image = Resources.indeterminate; } } private void radButton1_Click(object sender, EventArgs e) { radCheckBoxElement1.Enabled = radCheckBoxElement2.Enabled = radCheckBoxElement3.Enabled = !radCheckBoxElement1.Enabled; }
To reproduce: - Set ShowRootLines to true - Apply one of the following themes: Aqua, Office2007, TelerikMetro, VS2012 Workaround: - Open the theme in visual style builder - Expand the RadTreeView in the ControlStructureWindow - Select TreeNodeExpandItem and expand it in the Elements window - Navigate to the PossitionOffset property and set its width to 1
To reproduce: if you set in the app.manifest file <dpiAware>false</dpiAware>, the controls still scale when changing DPI. Workaround: Public Class RadForm1 Protected Overrides Sub OnLoad(e As EventArgs) Dim allowTheming = DirectCast(GetType(RadForm).GetField("allowTheming", BindingFlags.Instance Or BindingFlags.NonPublic).GetValue(Me), Boolean?) Dim behavior As ThemedFormBehavior = TryCast(Me.FormBehavior, ThemedFormBehavior) If behavior IsNot Nothing AndAlso allowTheming.HasValue AndAlso behavior.AllowTheming <> Me.AllowTheming Then behavior.AllowTheming = allowTheming.Value End If If Me.IsDesignMode Then GetType(RadFormControlBase).GetField("initialFormLocation", BindingFlags.Instance Or BindingFlags.NonPublic).SetValue(Me, Me.Location) Return End If Dim mi As MethodInfo = GetType(Form).GetMethod("OnLoad", BindingFlags.Instance Or BindingFlags.NonPublic) Dim ptr As IntPtr = mi.MethodHandle.GetFunctionPointer() Dim formOnOnLoad As Action(Of EventArgs) = DirectCast(Activator.CreateInstance(GetType(Action(Of EventArgs)), Me, ptr), Action(Of EventArgs)) formOnOnLoad(e) End Sub End Class
Steps to reproduce: 1. Add a small button to a form. 2. On click of this button show an OpenFileDialog. 3. Add a big button to the form 4. Add some sort of notification in the big button's click event handler (RadMessageBox) 5. Run the project and open the file dialog. 6. Position the dialog so the file (inside the open file dialog) you will choose will be over the big button. 7. Select a file by double clicking on it. You will see that the Click event for the big button will be fired.
The settings from the dialog opened by the Print button on the RadPrintPreviewDialog are not taken into consideration.
RadTabStrip, RadToolStrip and RadTreeView still can get the focus if validating event is cancelled.
RadButtonElement shows its border when it is in a button group where ShowBorder is false. It seems like there is an issue in the ForceReapplyStyle method.
There is a specific case where command bindings stop working. Let's say we have a RadGridView and a binding which adds a new row in this RadGridView. If we open the context menu of RadGridView, then press ESC to close it and then execute the command binding, this binding stops working if we try to execute it further.
GridImageCellElement should be able to hide the image that it shows. This should be possible thanks to a property that determines the visibility of the image. Probably, this property should be exposed at the base class LightVisualElement. Resolution: Add new properties DrawImage and DrawBackgroundImage. You can use the following code snippet: void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e) { if (e.CellElement is GridImageCellElement) { e.CellElement.DrawImage = false; } }
To reproduce: Set your theme to Windows8: ThemeResolutionService.ApplicationThemeName = new Windows8Theme().ThemeName; Add a RadTextBox and RadMaskedEditBox: RadTextBox textBox = new RadTextBox { Parent = this, Dock = DockStyle.Top, Text = "TextBox" }; RadMaskedEditBox maskedEditBox = new RadMaskedEditBox { Parent = this, Dock = DockStyle.Top, Text = "MaskedEditBox" }; RadDateTimePicker dateTimePicker = new RadDateTimePicker { Parent = this, Dock = DockStyle.Top, Text = "DateTimePicker" }; You can also set their Enabled property to false prior running the form. Run the form and you will see that their background is black. Workaround: For the RadTextBox, set the BackColor of the RootElement to white: textBox.RootElement.BackColor = Color.White; For the RadMaskedEditBox, set the BackColor of the TextBoxItem to white: maskedEditBox.MaskedEditBoxElement.TextBoxItem.BackColor = Color.White; For the RadDateTimePicker, set the BackColor of the TextBoxItem to white as follows: dateTimePicker.DateTimePickerElement.TextBoxElement.TextBoxItem.BackColor = Color.White;
There is no style applied to the property grid item when one sets the error message.
An image representing row error should be added to the theme