I can't focus new MDI tabbed document.

8 posts, 0 answers
  1. Tanser
    Tanser avatar
    10 posts
    Member since:
    Nov 2013

    Posted 03 May 2014 Link to this post

    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
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 05 May 2014 Link to this post

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Tanser
    Tanser avatar
    10 posts
    Member since:
    Nov 2013

    Posted 05 May 2014 in reply to Stefan Link to this post

    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.
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 05 May 2014 Link to this post

    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.
     
  6. Tanser
    Tanser avatar
    10 posts
    Member since:
    Nov 2013

    Posted 05 May 2014 in reply to Stefan Link to this post

    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.
  7. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 05 May 2014 Link to this post

    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.
     
  8. Tanser
    Tanser avatar
    10 posts
    Member since:
    Nov 2013

    Posted 05 May 2014 in reply to Stefan Link to this post

    Telerik 2014 Q1 SP1 - i am using at the moment
    Telerik 2014 Q1 - previous version. (Dock working correctly)
  9. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 05 May 2014 Link to this post

    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.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready