closing and re-adding RadPane does not show up.

5 posts, 0 answers
  1. Chris
    Chris  avatar
    42 posts
    Member since:
    Apr 2009

    Posted 26 Oct 2011 Link to this post

    Hi,
    I added RadPane programatically,
         myPaneGroup.Items.Add(myRadPane);
    Initially, it show up fine.
    Then, I close the pane (click on x button) and trying to re-add the same pane.
    It won't show up the second time.

    I'm trying to avoid to create a new pane everytime as it's quite heavy, instead, reuse the pane I already created.

    Could you please tell me what's going on?

    Thanks.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 27 Oct 2011 Link to this post

    Hello Chris,

    When the close button is clicked the IsHidden property of the Pane is set to True. In order to make the pane to show again you need to set it to False.

    Hope this helps.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Chris
    Chris  avatar
    42 posts
    Member since:
    Apr 2009

    Posted 27 Oct 2011 Link to this post

    Cool!

    But when I set IsHidden to false, it shows up with blank view.
    It turns out that Content is null.
    Is there way to preserve the Content with "Close"?

    Thanks.
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Oct 2011 Link to this post

    Hi Chris,

    This is the expected behaviour, after all the pane is closed. You will need to add the content again after re-showing it. You can also consider implementing save/load layout. In that way you will be able to save the content. Please refer to these help articles which explain the matter:

    Hope this info is helpful.

    Greetings,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  6. Chris
    Chris  avatar
    42 posts
    Member since:
    Apr 2009

    Posted 29 Oct 2011 Link to this post

    Thanks for the explanation.
    I decided to keep the "Content" around and reassign.
    Cheers!


     
Back to Top
UI for WPF is Visual Studio 2017 Ready