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

Add childform to RadDock

4 Answers 173 Views
Dock
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 05 Nov 2013, 08:36 AM
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

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 08 Nov 2013, 08:42 AM
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 >>
0
John
Top achievements
Rank 1
answered on 09 Nov 2013, 06:21 AM
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



0
John
Top achievements
Rank 1
answered on 11 Nov 2013, 09:54 AM
Hi again..
please help me if possible
tanx
0
George
Telerik team
answered on 13 Nov 2013, 04:56 PM
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 >>
Tags
Dock
Asked by
John
Top achievements
Rank 1
Answers by
George
Telerik team
John
Top achievements
Rank 1
Share this question
or