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

Loading Layout with panels

4 Answers 97 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Aaron Smith
Top achievements
Rank 1
Aaron Smith asked on 26 Jun 2009, 07:20 PM
Hello,

In my application, users can add panels with various content at run time.  These panels are being added in the code behind.  I've managed to get the application to save this and load it up again along with the content.

The XAML only contains one document container, however I suspect that when a user drags a panel over to one of the sides a new document pane is dynamically created?  Is this pane being assigned a serialization tag?

The reason I ask is it appears that when a panel is moved onto these sides and a new "container" is made, it is not being saved in the layout.  When reloaded, these windows either are not present or are floating.  They are not in their new container or pinned as they should be.

If this is infact what is happening, how can I assign a serialization tag to these new dyanmic panels radpanel is making on the user's behalf?

Let me know if you understand the question, thanks.


4 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 01 Jul 2009, 09:14 AM
Hello Aaron Smith,

The serialization tag is an attached property of RadDocking. So you can use the following option- setting it to a RadPane. Let us know of you need more assistance
private void SetSerializationTag(RadPane newPane) 
        { 
            newPane.SetValue(Redocking.SerializationTagProperty, "new serialization tag"); 
            //// OR 
            Redocking.SetSerializationTag(newPane, "new serialization tag"); 
        } 


Greetings,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Aaron Smith
Top achievements
Rank 1
answered on 01 Jul 2009, 12:57 PM
You misunderstood me.  I'm not talking about panels I'm adding, I'm asking if RadDocking is making it's own panels when users are dragging windows around.


I have one container on my page.  When rad panels are added at runtime, they enter this container.

Then, a user can drag these around.  Within the original container the layout is saved correctly.

If however, the user drags a window to the far side (making another "container" like object) and/or tries to pin that window, the layout is not saved correctly.  The window will either be gone or floating the next time the user logs in.

My question is, if I am correct in assuming that new containers are in fact being generated, how can I see that rad docking gives them a serialization tag so that my layout is saved?  Also I could be completely wrong about this, in which case my question is what do I need to do to allow a user to change their layout as described above and save it?

Thanks again.
0
Accepted
Kaloyan
Telerik team
answered on 02 Jul 2009, 03:56 PM
Hello Aaron Smith,

We were not able to reproduce the problem. Probably it is due to the fact that you have an older version of our controls. Try downloading our new Q2 2009 release and if the problem is still appearing you can send us a small application containing the problematic code.

Kind regards,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Aaron Smith
Top achievements
Rank 1
answered on 13 Jul 2009, 08:13 PM
Q2 appears to have resolved this issue thus far, thanks!
Tags
Docking
Asked by
Aaron Smith
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Aaron Smith
Top achievements
Rank 1
Share this question
or