This is a migrated thread and some comments may be shown as answers.

RadDocking1_Loaded Event

1 Answer 61 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 16 Mar 2011, 07:48 PM

Hi,

The following code does not collapse the RadSplitContainer.  However if I execute the same code on a button click event it works.  I guess the RadDocking1_Loaded event happens to early for the code to be effective.  Is there any event after RadDocking1_Loaded that I can use?  Also, I tried to make the RadSplitContainers collapsed in the xaml and that did not work either.

Thanks
Rich

 

 

 

void RadDocking1_Loaded(object sender, RoutedEventArgs e)
{
    SplitHostGroup2.Visibility = System.Windows.Visibility.Collapsed;
    SplitHostGroup3.Visibility = System.Windows.Visibility.Collapsed;
}

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Mar 2011, 05:22 PM
Hello Rich,

You should hide all the panes in order to hide the splitcontainer, I suggest yo try the following approach:

private void radDocking_Loaded(object sender, RoutedEventArgs e)
{
    this.radDocking.Panes.Where(
        p => ((p.Parent as RadPaneGroup).Parent as RadSplitContainer).Name == "radSplitContainer2").ToList().ForEach((p) =>
        {
            p.IsHidden = true;
        });
}

Hope this helps.

Regards,
Yana
the Telerik team
Tags
Docking
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or