question about docking capabilites

2 posts, 0 answers
  1. Dave
    Dave avatar
    1 posts
    Member since:
    Sep 2011

    Posted 30 Sep 2011 Link to this post

    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
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 04 Oct 2011 Link to this post

    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,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top