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
close icon

Hiding group handles

Is it possible to hide (set to transparent?) group handles. By group handles I mean the handles that appear when 2 or more nodes are selected.


3 Replies

AA Amsath Ali M Syncfusion Team March 16, 2011 10:54 AM UTC

Hi GC,

Thanks for using Syncfusion products.

We suggest you to set the view “HandleColor” and “HandleOutlineColor” property to transparent to achieve your requirement.

Please refer the below code snippet:
[C#]

this.diagram1.View.HandleColor = Color.Transparent;
this.diagram1.View.HandleOutlineColor = Color.Transparent;



For your convenience, We have created a simple sample to demonstrate the above and the same can be downloaded from the below link:

GroupingDemo-1938051178.zip

Please let me know if you have any concerns.

Regards,
Amsath Ali M




GC GC March 19, 2011 01:09 AM UTC

This hides all handles. I just want to hide group handles.



AA Amsath Ali M Syncfusion Team March 21, 2011 01:12 PM UTC

Hi Gc,

Thanks for using Syncfusion products.

Whenever you select more than one node the group handle only visible.We suggest you to set the view's "HandleColor" and "HandleOutlineColor" property to transparent to acheive your requirement.

Please refer the below code snippet:
[c#]

private void Form1_Load(object sender, EventArgs e)
{

this.diagram1.MouseUp += new MouseEventHandler(diagram_mouse);
}

private void diagram_mouse(object sender, System.Windows.Forms.MouseEventArgs e)
{
NodeCollection nodes = this.diagram1.Controller.SelectionList;

if (nodes.Count > 1)
{
this.diagram1.View.HandleColor = Color.Transparent;
this.diagram1.View.HandleOutlineColor = Color.Transparent;

}
else
{
this.diagram1.View.HandleColor = Color.GreenYellow;
this.diagram1.View.HandleOutlineColor = Color.Black;
}
}




For your convenience, We have created a simple sample to demonstrate the above and the same can be downloaded from the below link:

GroupingDemo-162830136.zip

Please let me know if you have any concerns.

Regards,
Amsath Ali M





Loader.
Live Chat Icon For mobile
Up arrow icon