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

I can't focus new MDI tabbed document.

7 Answers 141 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Tanser
Top achievements
Rank 1
Tanser asked on 03 May 2014, 03:40 PM
Hi,

I use Dock control for MDI Child Form. When i add new a Child Form, it is adding to dock but don't focus new document. This has changed after last upgrade.

Thanks your help. 

Best Regard

7 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 May 2014, 10:57 AM
Hello Tanser,

Thank you for writing.

I am not sure which is the version you observed automatically setting the newly added MDI windows as active, but I have tested with the last couple versions and was not able to observe such behavior. Still, to activate MDI windows when added, you can use the DockWindowAdded event and set the newly added HostWindow as ActiveWindow for RadDock:
void radDock1_DockWindowAdded(object sender, Telerik.WinControls.UI.Docking.DockWindowEventArgs e)
{
    if (e.DockWindow is HostWindow)
    {
        radDock1.ActiveWindow = e.DockWindow;
    }
}

I hope this helps.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Tanser
Top achievements
Rank 1
answered on 05 May 2014, 12:27 PM
Thanks your answer.

I'm using latest version of Telerik and i created simple project for show this problem. You can access the link that below.

https://drive.google.com/file/d/0B3o1p85K5xQTOHd1ZXRyMkh3RWs/edit?usp=sharing

Best regard.
0
Stefan
Telerik team
answered on 05 May 2014, 01:02 PM
Hi,

I am observing the same behavior on my end, but I was not able to find a version where this behavior differs. Please let me know which is the version with the different behavior and I will check the case.

Is addition have you tried that code I offered and does it work for you?

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Tanser
Top achievements
Rank 1
answered on 05 May 2014, 01:40 PM
My WinForm Telerik version is 2014.1.402.40 i guess this is lastest version of Telerik. On the other hand yes the code you sent me is worked. But this is already worked on previous version and i need not this code.

Our customers are using our project for six months. And i just upgrade my telerik component and rebuild the project and send to our customers. After that they feedback to this problem. I guess you changed working mechanism of DockControl on new version.
0
Stefan
Telerik team
answered on 05 May 2014, 02:18 PM
I understand that. I just need to know which is the previous version your project used, where this behavior was working correctly?

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Tanser
Top achievements
Rank 1
answered on 05 May 2014, 02:30 PM
Telerik 2014 Q1 SP1 - i am using at the moment
Telerik 2014 Q1 - previous version. (Dock working correctly)
0
Stefan
Telerik team
answered on 05 May 2014, 02:49 PM
Hi,

I am sorry, but I cannot see any difference in the behavior between the two versions you mentioned. I have tested with both yours and my application. Furthermore, I cannot see any change regarding such behavior in the latest version as well. See attached video.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Dock
Asked by
Tanser
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Tanser
Top achievements
Rank 1
Share this question
or