Dock only state
Hi, Question please :)
can i create a "dock only" control in the docking manager?
meaning the user will not be able to detach this control from the docking to a floating window?
thanks,
Maor
can i create a "dock only" control in the docking manager?
meaning the user will not be able to detach this control from the docking to a floating window?
thanks,
Maor
SIGN IN To post a reply.
5 Replies
SG
Selva Ganapathy Kathiresan
Syncfusion Team
March 23, 2012 11:00 AM UTC
Hi Maor,
Thank you for your interest in Syncfusion product.
You can acieve you requirement to disallow floating by setting dockingManager's DisallowFloating as true as per the following code snippet.
[Code Snippet]
this.dockingManager1.DisallowFloating = true;
Please let us know if you have any concerns.
Regards,
Selva Ganapathy K
Thank you for your interest in Syncfusion product.
You can acieve you requirement to disallow floating by setting dockingManager's DisallowFloating as true as per the following code snippet.
[Code Snippet]
this.dockingManager1.DisallowFloating = true;
Please let us know if you have any concerns.
Regards,
Selva Ganapathy K
MC
Maor Cohen Saban
March 26, 2012 05:23 AM UTC
Yes please,
when i set this property to 'true' i still undocked successfully panels from the docking.
anyway, there is a way to set only one control to 'dock only' state? and not disallow floating windows at all?
Thank you,
Maor
when i set this property to 'true' i still undocked successfully panels from the docking.
anyway, there is a way to set only one control to 'dock only' state? and not disallow floating windows at all?
Thank you,
Maor
SG
Selva Ganapathy Kathiresan
Syncfusion Team
March 28, 2012 04:04 AM UTC
Hi Maor,
Thanks for the update,
You can avoid floating for a control in docking manager using "SetAllowFloating" as per the following code snippet. Also i have attached a simple sample for the same.
[Code Snippet]
this.dockingManager1.SetAllowFloating(this.panel2, false);
Please let us know if you have any concerns.
We are glad to help you out.
Regards,
Selva Ganapathy K
floatpanel_7d7a8b12.zip
Thanks for the update,
You can avoid floating for a control in docking manager using "SetAllowFloating" as per the following code snippet. Also i have attached a simple sample for the same.
[Code Snippet]
this.dockingManager1.SetAllowFloating(this.panel2, false);
Please let us know if you have any concerns.
We are glad to help you out.
Regards,
Selva Ganapathy K
floatpanel_7d7a8b12.zip
MC
Maor Cohen Saban
March 28, 2012 07:48 AM UTC
this is not really my scenario.
i have a predefined docked control, that i want to disallow the user from pull it out of the docking.
the API of "SetAllowFloating" is not really works.
video attached.
thank you,
Maor
capture-1_d854962c.zip
i have a predefined docked control, that i want to disallow the user from pull it out of the docking.
the API of "SetAllowFloating" is not really works.
video attached.
thank you,
Maor
capture-1_d854962c.zip
SG
Selva Ganapathy Kathiresan
Syncfusion Team
March 29, 2012 09:12 AM UTC
Hi Maor,
Thanks for the update.
You can avoid the floating of a docked control using the "SetAllowFloating" while the control is in floating or dragging Please have the following code snippet for the same. And for more reference kindly look into the sample updated on March 28 2012 which has following code snippet.
[Code Snippet]
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.dockingManager1.DragFeedbackStop += new System.EventHandler(this.dockingManager1_DragFeedbackStop);
}
private void dockingManager1_DragFeedbackStop(object sender, EventArgs e)
{
this.dockingManager1.SetAllowFloating(this.panel2, false);
}
}
Please let us know if you have any concerns.
Regards,
Selva Ganapathy K
Thanks for the update.
You can avoid the floating of a docked control using the "SetAllowFloating" while the control is in floating or dragging Please have the following code snippet for the same. And for more reference kindly look into the sample updated on March 28 2012 which has following code snippet.
[Code Snippet]
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.dockingManager1.DragFeedbackStop += new System.EventHandler(this.dockingManager1_DragFeedbackStop);
}
private void dockingManager1_DragFeedbackStop(object sender, EventArgs e)
{
this.dockingManager1.SetAllowFloating(this.panel2, false);
}
}
Please let us know if you have any concerns.
Regards,
Selva Ganapathy K
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
MA Maor
- Mar 22, 2012 05:51 AM UTC
- Mar 29, 2012 09:12 AM UTC