Some issues with dockingmanager

Hello!

I am testing dockingmanager for winforms. I have attached a demo project where I have created some docked panels and 3 panels that should be in the middle as documents.

I need to activate the first of this Tabs, but cant get that working when using ActivateControl.

Second Issue is that the  NewDockStateEndLoad event never fires.

Please see the attached demo project (VS2022, Net 6) to see what I might be doing wrong.

Regards
Ronny


Attachment: SyncfusionWinFormsApp1_2fa422bd.zip

3 Replies

SN Sudharsan Narayanan Syncfusion Team March 9, 2022 03:50 AM UTC

Hi Ronny,

You can be able to achieve the “ActivateControl for first Document” requirement by using form loaded event. It will activate the specific tabs window in the Docking Manager. So, please find the code snippet and Sample from the below,

Code Snippet:

 
this.Load += Form1_Load;
private
void Form1_Load(object sender, EventArgs e) 
        { 
            _dockingManagerMain.ActivateControl(_WysiwygDockPagePanel); 
        } 

Sample: https://www.syncfusion.com/downloads/support/forum/173432/ze/SyncfusionWinFormsApp1-1180501448

Please check the above code snippet and let us know your concerns. We are happy to assist you.

Regards,
Sudharsan



UN Unknown March 9, 2022 12:07 PM UTC

Thank you Sudharsan, that now works :)


How about the fact that NewDockStateEndLoad event dosent fire, the dcoumentation says we should use this event, but I cant get it to fire.


Regards
Ronny



SN Sudharsan Narayanan Syncfusion Team March 17, 2022 03:41 AM UTC

Hi Ronny,

Currently, we are checking that the event does not work in the Net60 project. Once, if any changes are needed, we will update it in the documentation as well as on the forum.

If you have any other concerns about this, please let us know here.


Regards,
Sudharsan


Loader.
Up arrow icon