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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom Controller shape

Thread ID:

Created:

Updated:

Platform:

Replies:

131611 Jul 19,2017 02:57 PM UTC Jul 25,2017 09:19 AM UTC ASP.NET Web Forms 3
loading
Tags: Diagram
Fabian Lorenz
Asked On July 19, 2017 02:57 PM UTC

Dear Syncfusion Team,
I am trying to add a double arrow connector or other custom shapes in my Diagram palette.
Furthermore I want to have connectors with custom Icons/Images in the middle of the connector.
So far I have found a way to make a custom Node with a svg Template.
I am searching a similar approach for a connector.
Is this possible and if yes can you point me to a code example.
Regards,
Fabian

Shyam G [Syncfusion]
Replied On July 20, 2017 04:49 AM UTC

Hi Fabian, 
 
Please use label’s templateId property to achieve your requirement. please refer to the code example below. 
 
Code example: 
 
<script id="animationellipse" type="text/x-jsrender"> 
        <svg xmlns="http://www.w3.org/2000/svg" 
             xmlns:xlink="http://www.w3.org/1999/xlink"> 
            <circle cx="10" cy="6" r="5"  
                     style="stroke:#006600; fill:#00cc00" /> 
        </svg> 
    </script> 
 
Connector connector = new Connector(); 
 Label label = new Label(); 
 label.TemplateId = "animationellipse"; 
connector.Labels.Add(label); 
 
Regards, 
Shyam G 


Fabian Lorenz
Replied On July 24, 2017 08:03 AM UTC

Hi Shyam,

unfortunately I get an error for label.TemplateID.

It says there is no Definition for it.

I am using Asp.Net Web Forms Version 14.4.0.15

Regards,

Fabian


Shyam G [Syncfusion]
Replied On July 25, 2017 09:19 AM UTC

Hi Fabian, 
 
We have created a support incident under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
 
                                                                                                                                     
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.

Warning Icon 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.Close Icon

;