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

Save / Load Pane content

1 Answer 59 Views
Docking
This is a migrated thread and some comments may be shown as answers.
jehan
Top achievements
Rank 1
jehan asked on 26 May 2015, 06:51 AM

Hello,
I'm working on an app for my internship and I have to make a save / load the content when we open and close the application and we click on the button "save" and "load".
I watch many times your example and I do a lot of research on google and the forum but I don't know and I have no idea how to do the GetPageContent() method.

I know this method is specific but I would like you to send me an example in C # so I can get an idea of method to follow to implement this method.

Thank you very much in advance

Jéhan

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 28 May 2015, 03:04 PM
Hi Jehan,

The GetPaneContent method is a method you should create in your code to find the correct content for the corresponding Pane - its implementation is different in all scenarios. By default we are using the contents which panes currently contain when the Load method is called using the SerializationTag to match the panes - in most cases you don't need to implement any custom logic to save and load the content. So, basically you need to create a method called GetPaneContent inside the handled ElementLoadedEvent, pass the SerializationTag of the Pane as a parameter and based on this tag to get the needed information and finally set it  to the Content property of the Pane.

We hope this will help you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Docking
Asked by
jehan
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or