Completed
Last Updated: 01 Nov 2017 13:06 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 31 Aug 2016 11:40
Category: SplitContainer
Type: Bug Report
1
FIX. RadSplitContainer - incorrect collapsing when changing the Direction in the PanelCollapsing event
Please refer to the attached sample project. Double click the middle splitter in the horizontal split container.

Workaround: manually collapse the desired split panel:

private void Form1_Load(object sender, EventArgs e)
{
    this.radSplitContainer3.PanelCollapsing += radSplitContainer3_PanelCollapsing;
    foreach (SplitterElement s in this.radSplitContainer3.Splitters)
    {
        s.DoubleClick += s_DoubleClick;
    }
}

private void s_DoubleClick(object sender, EventArgs e)
{
    SplitterElement s = sender as SplitterElement;
    ((SplitPanel)s.RightNode).Collapsed = true;
}
0 comments