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

Loading RadPane State & Content Dynamically

1 Answer 131 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 21 Sep 2010, 09:02 PM
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

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Sep 2010, 01:54 PM
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
Tags
Docking
Asked by
Chris
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or