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.
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
0
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
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.
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
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:
Greetings,
Konstantina
the Telerik team
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:
- http://www.telerik.com/help/wpf/raddocking-features-save-load-layout.html
- http://www.telerik.com/help/wpf/raddocking-save-load-the-content-of-the-panes.html
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!
I decided to keep the "Content" around and reassign.
Cheers!