RadDocking1_Loaded Event

2 posts, 0 answers
  1. Richard Harrigan
    Richard Harrigan avatar
    235 posts
    Member since:
    Nov 2009

    Posted 16 Mar 2011 Link to this post


    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.





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


  2. Yana
    Yana avatar
    4604 posts

    Posted 18 Mar 2011 Link to this post

    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)
            p => ((p.Parent as RadPaneGroup).Parent as RadSplitContainer).Name == "radSplitContainer2").ToList().ForEach((p) =>
                p.IsHidden = true;

    Hope this helps.

    the Telerik team
Back to Top