Completed
Last Updated: 06 Jun 2019 13:30 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.610)
ADMIN
Dimitar
Created on: 02 Apr 2015 08:08
Category:
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++];
        }
    }
}

0 comments