Save / Load Pane content

2 posts, 0 answers
  1. jehan
    jehan avatar
    1 posts
    Member since:
    May 2015

    Posted 26 May 2015 Link to this post

    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


  2. Nasko
    Nasko avatar
    699 posts

    Posted 28 May 2015 Link to this post

    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.

    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
Back to Top