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

question about docking capabilites

1 Answer 30 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 30 Sep 2011, 09:13 PM
Hello all -

We have an application coming together and we're considering the docking component as a solution. We have a few questions that aren't clearly answered on the website, and I'm hoping to someone might be able to easily give us an idea of the possibilities.  Here are my questions:

1) I understand that the a pane can be set to have a minimum and maximum size, but is it possible to have 2 or 3 set sizes that the pane can be? For example, if the user dragged to expand it could it 'snap' to the next site up etc?

2) Is it possible to enforce a set aspect ratio? So that users can resize but the page must remain the same aspect?

3) Is there a way to turn off and hide the icons in the upper right (the down arrow, pin, X)? For example, can we have a window that can be permanently placed in one location and the user has no ability to alter it?

If anyone can share some information it would really help our planning.
thank you very much! Dave

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 04 Oct 2011, 02:16 PM
Hi Dave,

The answers to your questions are as follows:
1) I am afraid this is not possible. The Docking control is working that when a pane is dragged and docked somewhere else, a new SplitContainer and new PaneGroup is created dynamically in which the pane is put. So, even if you hook to the SizeChanged event of the PaneGroup, once relocated, the group is not the same, so the event won't fire. However, could you please explain in details your case and if there is a possible approach for achieving this, we will share it with you.
2) The Docking control does not support such sizing.
3) The icons can be manipulated by setting one of the following properties to the pane:
- CanUserClose - it removes the close button and disables the user to close the pane
- CanUserPin - this one removes the pin button and disables the user to pin/unpin the pane
- To remove the drop down button you need to remove the ContextMenu of the RadPane, by setting it to null: ContextMenuTemplate="{x:Null}"
You can find further information about the features of the Docking control in our online documentation.

Hope this information helps.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Docking
Asked by
Dave
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or