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

Multiple panels problem

3 Answers 105 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Afaan
Top achievements
Rank 1
Afaan asked on 14 Oct 2008, 07:46 PM
Hi I am currently in the process of evaluating RadControls for winforms. I had a question regarding the MDI. I am asked to develop an application, where the user can have mabe a column on the left, and is able to drag those windows onto the main screen for the preferred layout and size. So basically what i am trying to do is enable docking in the left column, as well as the right side display of the screen seperately using DockPanels. As right now, once the form loads, the docking can be set either for just the column, or stretched to the entire form. How could I achieve the desired effect? thanks in advance, any help would be appreciated.

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 16 Oct 2008, 12:08 PM
Hi Afaan,

From your description, we understand that you want to have several predefined areas on the right-hand side which to host the docking windows, like in iGoogle. If so, our docking control does not offer this functionality. Rather, it mimics Visual Studio and its MDI implementation.

If this is not your case, we will appreciate it if you send us a screenshot of what you need. I have moved your Forum post to the support ticketing system to allow attachements.

Thank you in advance.
 

Sincerely yours,
Julian Benkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Afaan
Top achievements
Rank 1
answered on 17 Oct 2008, 12:37 PM
hello, thanks for the reply. The iGoogle like functionality is not quite what i had in mind, similar but not exactly. In iGoogle, users are forced to drag to pre-defined areas. What i would like is for the user to drag to any location on the screen. I have thought of a work around, as i now just have a column on the left side with a listview, and upon dragging an entry from the listview, the user can have a window appear on the right side of the screen, which is meant to be the main display. However this poses another problem. Although docking is useful, it is not something that the user will always want to display, hence i have the windows appear as floating. Once the user has the layout the way they would like, i would then like to get the size and location of each dockpanel in order to load it up again for display. The size is no problem, however i am having trouble in obtaining the locations of these floating dockpanels. Is that possible? Would i be better off using multiple child forms as opposed to dockpanels? Thanks in advance.
0
Julian Benkov
Telerik team
answered on 20 Oct 2008, 10:42 AM
Hi Afaan,

To access and change the Location of the floating window you can use following code snippet:

if (dockPanel1.DockingSite.Host != null
    dockPanel1.DockingSite.Host.Location = new Point(100, 50); 


Sincerely yours,
Julian Benkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Afaan
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Afaan
Top achievements
Rank 1
Share this question
or