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

RadDocumentPane Size

1 Answer 148 Views
Docking
This is a migrated thread and some comments may be shown as answers.
AdamL
Top achievements
Rank 1
AdamL asked on 27 Aug 2010, 09:11 PM
I am adding a RadDocumentPane to a PaneGroup inside a DocumentHost with no issue with the following code:

 

RadDocumentPane docPane = new RadDocumentPane();

 

docPane.Header = header;

docPane.Content =

"New Pane";

 

 

docPane.CanUserClose =

false;

 

paneGroup.Items.Add(docPane);

docPane.MakeFloatingDockable();


This opens the pane without docking it.  However I cannot set the size of the pane.  I have attempted using docPane.Width / docPane.Height and docPane.RenderSize(w,h) with no change to the size of the pane. 

Is there a way to set the width and height of a document pane programatically? 

2nd Item:  I notice that if I resize the pane manually and then dock the pane; when I drag the pane to undock it, it returns to the default width / height.  Is there way to remember the width / height that the pane was docked at and return to that size when it is undocked?

Last Item:  I am attempting to use the docking as a MDI replacement.  My users are slow to change and may resist this because there is no minimize / maximize and the panes can be dragged outside the parent window.  The dragging is more important than the min / max buttons but, is there a reasonable solution / work around for these items?

Thanks in advance.

- Adam

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 31 Aug 2010, 04:00 PM
Hello AdamL,

Thank you for contacting us.

Straight to your questions:
1. When a Pane is floating it is put into a new RadPaneGroup and a ToolWindow. To change the size of the Pane you will have to change the size of the ToolWindow.
2. Because every time a new RadPaneGroup is created the Pane keeps the default size.
I happened to have a sample project in which a similar thing is illustrated. It is Silverlight 3 though, but I hope it will help you achieve your goal.
3. This feature requests are added in our Public Issue Tracking System (PITS). You can view them here: You can track their status, vote for them and see when they are going to be implemented.

If you need further help please let us know.

All the best,
Konstantina
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
AdamL
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or