Workaround: set UseCompatibleTextRendering to true.
RadPanel, RadScrollablePanel and RadGroupBox should support AutoSize mode, where AutoSize = true and AutoSizeMode = GrowAndShrink.
Check the AutoSize property behavior at design time for Label and RadLabel.
To reproduce: - Set the Localizable property of the form to true. - Change the header text of the collapsible panel.
The scrollbars of RadScrollablePanel should have a ScrollState property with possible values AlwaysHide, AlwaysShow, AutoHide.
One should be able to scroll RadScrollablePanel at design-time
To reproduce: - Use the attached project. - Resize the panel to the left. - You will notice that the borders are cut off. Second scenario: refer to the 1016234GridInCollapsiblePanelVS2010.zip RadCollapsiblePanel1.ExpandDirection = Telerik.WinControls.UI.RadDirection.Right RadSplitContainer1.SplitPanels("SplitPanel2").SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute RadSplitContainer1.SplitPanels("SplitPanel2").SizeInfo.AbsoluteSize = New System.Drawing.Size(637, 522) Workaround: manually update the collapsible panel`s size in the SplitterMoved event public WorkCenterScheduleAndStatusControl() { InitializeComponent(); this.radSplitContainer1.SplitterMoved += RadSplitContainer1_SplitterMoved; } private void RadSplitContainer1_SplitterMoved(object sender, SplitterEventArgs e) { this.radCollapsiblePanel1.Size = new Size(this.radCollapsiblePanel1.Size.Width, this.radCollapsiblePanel1.Size.Height - 1); this.radCollapsiblePanel1.Size = new Size(this.radCollapsiblePanel1.Width, this.radCollapsiblePanel1.Size.Height + 1); }
RadScrollablePanel - add ability to override the embedded MS Panel.
Steps to reproduce: 1) Add RadScrollablePanel 2) Add RadTextBox control into the RadScrollablePanel 3) Set the RightToLeft property of the to RadScrollablePanel to Yes 4) Set the following properties of the RadTextBox: this.radTextBox1.AutoSize = false; this.radTextBox1.Multiline = true; Expected Result: The horizontal scrollbar is working properly Actual Result: The horizontal scrollbar of the RadScrollablePanel is showing but is not working
FIX. RadLabel - size goes to 0,0 after setting AutoSize to false on a newly added label to the form
How to reproduce: check the attached project Workaround: resize the size of the hosting RadPanel private void radCollapsiblePanel_Expanding(object sender, CancelEventArgs e) { this.radPanel1.Size = new Size(this.radPanel1.Size.Width, this.radPanel1.Size.Height - 1); } private void radCollapsiblePanel_Expanded(object sender, EventArgs e) { this.radPanel1.Size = new Size(this.radPanel1.Size.Width, this.radPanel1.Size.Height + 1); }
How to reproduce: check the attached video Workaround: use the attached custom theme
Code to reproduce: this.radLabel1.BackColor = Color.Yellow; this.radLabel1.BorderVisible = true; this.radLabel1.LabelElement.LabelBorder.ForeColor = Color.Red; WORKAROUND: this.radLabel1.LabelElement.LabelBorder.FitToSizeMode = RadFitToSizeMode.FitToParentBounds;
When AutoSize is false, TextWrap is true, TextImageRelation is ImageBeforeText and RadLabel has a padding set, the text does not wrap correctly.
Description: For a RadScrollablePanel (VerticalScrollbar is visible) with a RadSpinEditor inside it, when the user is scrolling the mouse wheel in order to change the RadSpinEditor value, both controls (the RadScrollablePanel and the RadSpinEditor) are affected. To reproduce: - add a RadScrollablePanel with several controls inside it (VerticalScrollbar is visible) - add a RadSpinEditor inside the RadScrollablePanel - scroll the mouse wheel in order to change the RadSpinEditor value Workaround: this.radSpinEditor3.SpinElement.TextBoxItem.HostedControl.MouseWheel+= HostedControl_MouseWheel; private void HostedControl_MouseWheel(object sender, MouseEventArgs e) { if (this.radSpinEditor3.ReadOnly || !this.radSpinEditor3.SpinElement.EnableMouseWheel) { return; } HandledMouseEventArgs handledMouseEventArg = e as HandledMouseEventArgs; if (handledMouseEventArg != null) { if (handledMouseEventArg.Handled) { return; } handledMouseEventArg.Handled = true; } }
When RadPanel gets focus it prevents Microsoft Windows Form key events from being fires unless the form KeyPreview property is enabled.
When the control is anchored to bottom left and its text is set to empty string in the form's Load event its position is changed. To workaround this you can either set the text to a space or you can set the text in the form's shown event: Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown RadLabel2.Text = "" End Sub
To reproduce: var stackPanel = new StackLayoutElement { Orientation = Orientation.Vertical }; stackPanel.Children.Add(new TextPrimitive { Text = "Demo" }); stackPanel.Children.Add(new TextPrimitive { Text = "Demo" }); Panel.PanelElement.Children.Add(stackPanel); Panel.AutoSize = true; // <= false works fine Workaund: - Put the panel in a control: public class MyControl : RadControl { protected override void CreateChildItems(RadElement parent) { base.CreateChildItems(parent); var stackPanel = new StackLayoutElement { Orientation = Orientation.Vertical }; stackPanel.Children.Add(new TextPrimitive { Text = "Demo" }); stackPanel.Children.Add(new TextPrimitive { Text = "Demo" }); parent.Children.Add(stackPanel); } protected override RootRadElement CreateRootElement() { RootRadElement root = base.CreateRootElement(); root.BackColor = Color.Transparent; return root; } }
To reproduce: please refer to the attached gif file: 1. Drop RadCollapsiblePanel from the toolbox on to the windows form. 2. Click on the form and press Ctrl+Z to undo the change 3. Observe that an error dialog popped up saying "Index and length must refer to a location within the string. Parameter name: length"
If you set this.radScrollablePanel1.PanelContainer.VerticalScroll.Value = 170, the content will be scrolled, but the position of the scrollbar thumb will not be changed. You should call ((RadVScrollBar)this.radScrollablePanel1.Controls[1]).Value = 170 explicitly. However, this should happen automatically. Resolution: The .NET framework does not provide a way to get notified when the values of the PanelContainer's scrolls have changed. To set the values programmatically use: this.radScrollablePanel1.VerticalScrollbar.Value = value;this.radScrollablePanel1.HorizontalScrollbar.Value = value;