We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DockingManager and SetCloseButtonVisibility

Hi,

I tried to implement the SetCloseButtonVisibility to prevent a user from closing one of the docked windows. The code is as follows:

private void dockingManager_NewDockStateEndLoad(object sender, EventArgs e)
{
dockingManager.SetCloseButtonVisibility(this.treeModel, false);
}

This control (treeModel) still displays an "X" and I can close it. What am I doing wrong?

Thank you.

3 Replies

PJ Poly J Syncfusion Team March 14, 2007 12:45 PM UTC

Hi Elsa,

Thanks for your interest in Syncfusion products.

I have tested the issue you have reported and SetCloseButtonVisibility method is working as expected in our end. Please refer to the attached sample and let me know if you are able to reproduce this issue.
http://websamples.syncfusion.com/samples/Tools.Windows/F57892/main.htm

Please let me know the Essential Studio version you are using.

Best Regards,
Poly




ST Sameer Tupe August 10, 2007 04:33 PM UTC

I tried the sample. First I got resx load error. I dropped sample textbox on the panel1 and then compiled. It started working but I still see close button on both the windows.
.Net 1.1
Sync - 4.101.0.50


AJ Ajish Syncfusion Team August 10, 2007 11:29 PM UTC

Hi Sameer,

You can use the following code,

this.dockingManager1.CloseEnabled = false;

to disable close button on the docking Manager. Kindly take a look and let me know if this helps.

Regards,
Ajish.


Loader.
Live Chat Icon For mobile
Up arrow icon