Loading RadPane State & Content Dynamically

2 posts, 0 answers
  1. Chris
    Chris avatar
    51 posts
    Member since:
    Sep 2010

    Posted 21 Sep 2010 Link to this post

    Hi,

    I am developing a BI dashboard that allows users to create and save customised dashboard pages based on a set of pre-defined templates. The templates will either be a set of RadTileViews or a RadDocking control with a set of RadPanes. The user will be able to add business objects to each RadPane via an additional context menu option and the layout state and also content state of each pane needs to be persisted between sessions.

    I am using Prism and MVVM as in the Telerik dashboard example but am struggling with the best approach for dynamically loading and saving the dashboard pages state and content. I have played with the SaveLayout and LoadLayout methods of the RadDocking control, and this works fine for statically declared controls. I have also looked at the ElementLoading event in order to load content based on the SerializedTag property, but this doesn't seem to fit with using a dynamically loaded template.

    Do the team have any advise on the best way to implement this? When loading a dashboard page the application needs to know the template to load, apply saved layout, then load the correct business object into each RadPane and again apply state information (this will be custom state).

    Any advise would be greatly appreciated.
    Regards,
    Chris
  2. George
    Admin
    George avatar
    1332 posts

    Posted 24 Sep 2010 Link to this post

    Hello Chris,


    The content of the dynamically added panes is not loaded, because the content of the panes is not saved at all - it uses the current configuration to find the content of the loaded panes. If you add panes dynamically you need to take care for their content yourself.  You could find more information how to do this in the following article: http://www.telerik.com/help/silverlight/raddocking-save-load-the-content-of-the-panes.html

    Please,refer to our forum thread where you can find interesting notes regarding the usage of Prism and RadDocking. Also, you could find more information in Miroslav Nedyalkov's blog - http://blogs.telerik.com/miroslavnedyalkov/posts/09-08-31/using_the_raddocking_control_with_prism.aspx

     
    I hope this helps! Please do not hesitate to contact us if you require any further information.

    Greetings,
    George
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top