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.
Unfortunately, activation email could not send to your email. Please try again.

Change options displayed on Node selection

Thread ID:

Created:

Updated:

Platform:

Replies:

130996 Jun 15,2017 05:15 AM Jun 18,2017 11:50 PM ASP.NET MVC 3
loading
Tags: Diagram
indrani Gajjarapu
Asked On June 15, 2017 05:15 AM

Hi,

I don't want the line symbol when a node is selected. How can I manage the options appeared (Clone, Property window, Line bridging) on node selection.

Thank you.



Shyam G [Syncfusion]
Replied On June 16, 2017 07:36 AM

Hi Indrani, 
 
Please confirm us whether you need to hide the line tool userhandles while selecting the node. If yes, please use selectionChange event in which you can hide the line tool userhandles. If we misunderstood your requirement, please provide us more details such as explain your requirement in detail with screenshot. Please refer to the code example below. 
 
Code  example: 
 
DiagramProperties model = new DiagramProperties(); 
//define selectionchange event 
model.SelectionChange = "selectionchange"; 
 
function selectionchange(args) {         
        if (args.state === "changed") { 
       if (args.model.selectedItems.userHandles.length > 0) { 
                for (var i = 0; i < args.model.selectedItems.userHandles.length; i++) { 
                    var handle = args.model.selectedItems.userHandles[i]; 
                  //hide the user handle 
                    handle.visible = false; 
                   //Based on your condition you can hide the userhandle 
                } 
            }             
        } 
    } 
 
Regards, 
Shyam G 


indrani Gajjarapu
Replied On June 16, 2017 07:38 AM

Hi Shyam,

Thanks for your response.

That's perfect!!. Thank you

Shyam G [Syncfusion]
Replied On June 18, 2017 11:50 PM

Hi Indrani, 
Please let us know if you need further assistance on this. 
Regards, 
Shyam G 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;