Add childform to RadDock

5 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Nov 2013

    Posted 05 Nov 2013 Link to this post

    Hi,
    i use raddock in my project.as u know when it show(open) a form it becomes a tab in raddock.
    my problem is that when i open a form and number of open tabs(forms) got more than the width of raddock, it automatically set new opened form in front of other forms.though , i set DocumentInsertOrder to ToBack.
    when number of open forms are less than raddock's width, DocumentInsertOrder  works correctly and add new forms to end of active forms but when number of open forms exceed raddock width, it seems that this property act as InFront and add new forms in front of other forms.
    i want to add new forms always at the end of active form list even though number of open forms exceed raddock width.
    i'm in hurry, please help me
    tanx in advance
  2. George
    Admin
    George avatar
    500 posts

    Posted 08 Nov 2013 Link to this post

    Hello John,

    Thank you for contacting us.

    By following your description I created a sample project, however I was not able to reproduce the same behavior on my end. Even after 150 added document windows, they were still inserting ToBack. Below you can find my sample project, take a look at it and let me know if you think that I have done something wrong.

    Looking forward to your reply.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. John
    John avatar
    3 posts
    Member since:
    Nov 2013

    Posted 09 Nov 2013 Link to this post

    Hi, thanks for your reply and attention.
    but as you see  in your sample,when add second series of forms to RadDock (click button for second time),
    new added forms become visible and older forms went left and disappear.i don't want this.
    i need a way that when i add second series of forms, first forms save their place(in left) and remain visible and new forms that exceed form width become disappear and go to ActiveForms List.
    i need that forms preserve their place and e.x if i add 100 forms to RadDock, after adding forms,i still see first forms visible and  in front of other forms and when add other forms don't change appearance of form and new forms add behind.
    sorry if i explain more, but i want clearly explain my necessity.
    tanx so much



  5. John
    John avatar
    3 posts
    Member since:
    Nov 2013

    Posted 11 Nov 2013 Link to this post

    Hi again..
    please help me if possible
    tanx
  6. George
    Admin
    George avatar
    500 posts

    Posted 13 Nov 2013 Link to this post

    Hi John,

    Thank you for replying.

    You can save the current window and after the new windows are added it can be restored as active:
    this.button.Click += (s, e) =>
    {
        DockWindow saved = this.radDock.DocumentManager.ActiveDocument;
        //add windows
        this.radDock.ActiveWindow = saved;
    };

    This approach worked well in the sample project I send you before.

    I hope this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready