Completed
Last Updated: 07 Jun 2021 16:19 by ADMIN
Release R2 2021 SP1
ADMIN
Ivan Todorov
Created on: 10 Apr 2015 07:21
Category:
Type: Bug Report
1
FIX. RadCollapsiblePanel - child controls are not visible in the Document Outline window in Visual Studio
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.
2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 17 May 2021 13:52

Hi, Harold,

Thank you for providing the image and specifying the Telerik version. We will consider it when addressing this issue.

Please make sure that you follow this item in order to get notified once any status changes occur. Meanwhile feel free to use the suggested workaround.

Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Harold
Posted on: 17 May 2021 13:18

This issue is happening now in VS 2019 with Telerik 2021.2.511.40.