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

closing and re-adding RadPane does not show up.

4 Answers 90 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 27 Oct 2011, 02:46 AM
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.

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 27 Oct 2011, 03:30 PM
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 >>
0
Chris
Top achievements
Rank 1
answered on 28 Oct 2011, 02:39 AM
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.
0
Konstantina
Telerik team
answered on 28 Oct 2011, 12:29 PM
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 >>
0
Chris
Top achievements
Rank 1
answered on 29 Oct 2011, 05:26 AM
Thanks for the explanation.
I decided to keep the "Content" around and reassign.
Cheers!


 
Tags
Docking
Asked by
Chris
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Chris
Top achievements
Rank 1
Share this question
or