Multiple panels problem

4 posts, 0 answers
  1. Afaan
    Afaan avatar
    17 posts
    Member since:
    Sep 2008

    Posted 14 Oct 2008 Link to this post

    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.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 16 Oct 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Afaan
    Afaan avatar
    17 posts
    Member since:
    Sep 2008

    Posted 17 Oct 2008 Link to this post

    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.
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 20 Oct 2008 Link to this post

    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.
Back to Top