If you add a RadCollapsiblePanel to a form in design time, then add some child controls in its control container, then open the Document Outline window, you will see that the child controls are not visible in the Document Outline. Workaround: There is a workaround which involves creating an inherited RadCollapsiblePanel and assigning it with a custom designer: [Designer(typeof(MyCollapsiblePanelDesigner))] class MyCollapsiblePanel : RadCollapsiblePanel { public override string ThemeClassName { get { return typeof(RadCollapsiblePanel).FullName; } set { base.ThemeClassName = value; } } } class MyCollapsiblePanelDesigner : RadControlDesignerLite { public override void Initialize(System.ComponentModel.IComponent component) { base.Initialize(component); this.EnableDesignMode((this.Control as RadCollapsiblePanel).ControlsContainer, "ControlsContainer"); this.EnableDesignMode((this.Control as RadCollapsiblePanel).PanelContainer, "PanelContainer"); } public override ControlDesigner InternalControlDesigner(int internalControlIndex) { return this.DesignerHost.GetDesigner((this.Component as RadCollapsiblePanel).PanelContainer) as ControlDesigner; } public override int NumberOfInternalControlDesigners() { return 1; } protected override RadControlDesignerLiteActionList CreateActionList() { return new RadCollapsiblePanelActionList(this); } } Note that you would need to add references to the System.Design and Telerik.WinControls.UI.Design assemblies in order for the workaround to build. After you build it successfully, you can use the MyCollapsiblePanel component from your toolbox and you will be able to see the child controls in the document outline.
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"
To reproduce: Add a RadLabel with text, set its background to red, its border to Yellow and start the project. You will notice that there is one pixel outside the border. Workaround: Set the Borderthickness of the LabelElement to 0: label2.LabelElement.BorderThickness = new Padding(0);
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;
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); }
To reproduce: - Add to collapsible panels to a form. - Dock the first to the top and set the Dock property of the second to Fill. - Set the ExpandDirection of the second to Up. - Start the application and collapse and then expand the second panel. - You will notice that the header button is no longer visible. Workaround: void radCollapsiblePanel1_Expanded(object sender, EventArgs e) { radCollapsiblePanel2.CollapsiblePanelElement.InvalidateMeasure(true); }
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); }
To reproduce: - Add a collapsible panel to ToolWindow. - Collapse the panel and redock the tool window. - The panel cannot be expanded any more. Workaround: List<Rectangle> list; void radDock1_DockStateChanging(object sender, Telerik.WinControls.UI.Docking.DockStateChangingEventArgs e) { list = new List<Rectangle>(); foreach (var item in e.NewWindow.Controls) { if (item is RadCollapsiblePanel) { list.Add(((RadCollapsiblePanel)item).OwnerBoundsCache); } } } void radDock1_DockStateChanged(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e) { int count = 0; foreach (var item in e.DockWindow.Controls) { if (item is RadCollapsiblePanel) { ((RadCollapsiblePanel)item).OwnerBoundsCache = list[count++]; } } }
The fix in 3Q18 removed the exposed Text property of the RadPanel control. Setting the text to blank should not have removed the Text property from the control.
Workaround: set UseCompatibleTextRendering to true.
Hi,
We have an issue when using RightToLeft property of the RadCollapsiblePanel Control.
When the HeaderText ends with non-alphanumeric characters, on display, these characters are moved to the beginning of the title (possibly with a replacement of the closing characters in opening characters - such as the parenthesis).
I've attached a little sample of the issue.
Thanks for your help.
Regards
Fabrice MABIT
fmabit@proginov.com
To reproduce: 1. Add a RadCollapsiblePanel and change the back color or border of the container via the Edit UI elements dialog. 2. Save the changes and run the project. You will notice that the style is reset and the changes are not preserved. Workaround: Customize the style at runtime. The following help article gives you information about the internal elements structure of the RadCollapsiblePanel: https://docs.telerik.com/devtools/winforms/panels-and-labels/collapsiblepanel/structure
Use attached to reproduce. Workaround: - Use RadForm it explicitly handles the controls scaling. - Make sure that the following of the user controls are set like this: this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
Use attached to reproduce and for workaround.
I can't think of a reason to have text in a panel, however every time one is added from the toolbox it has text set as the control name. I would love this to default to blank.
Create a new TelerikWinForms project. Add a collapsible panel. Set the border colour via the "Edit UI Elements" button in the task menu, under BorderPrimitive.ForeColor. The border will appear to change in design view, but will not change at runtime, with the appropriate line not being added to the form .Designer.cs file at all. This was tested with the Windows 8 theme applied. Workaround: ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radCollapsiblePanel1.ControlsContainer.GetChildAt(0).GetChildAt(1))).ForeColor = Color.White;
Workaround: use CollapsiblePanelAnimationType.Reveal
My current theme is windows10. In two images I demonstrate the problem.
Use attached to reproduce. - Open the form at design time, the border is correctly set to gray color. - Start the application, the border changes to blue. Workaround: radCollapsiblePanel1.ControlsContainer.PanelElement.Border.ForeColor = Color.FromArgb(171, 171, 171); or ThemeResolutionService.ApplicationThemeName = "Office2013Dark";
Controls in RadPanel redraw slowly when changing the Enabled state of the panel. Workaround: private void radButton1_Click(object sender, EventArgs e) { if (this.radPanel1.Enabled) { this.radPanel1.Enabled = false; } else { this.radPanel1.Visible = false; this.radPanel1.Enabled = true; this.radPanel1.Visible = true; } }