Approved
Last Updated: 29 Mar 2016 11:28 by ADMIN
ADMIN
Dimitar
Created on: 02 Apr 2015 08:08
Category: Panel, CollapsiblePanel, Label, GroupBox
Type: Bug Report
1
FIX. RadCollapsiblePanel - the control cannot be expanded when it is in a ToolWindow and the latter is redocked.
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++];
        }
    }
}

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments