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

Add a icon in a roundrect node

Hi,

I have a RoundRect node with a text and I want to add a icon.

I do not know do this. Can you help me?

Thanks!

9 Replies

DM Dinesh M Syncfusion Team November 26, 2009 04:37 PM UTC

Hi Alberto,

There are no direct ways available to achieve this requirement and hence we need to achieve this by customizing the label class. I will prepare a sample for this and update you in 2 business days.

Thank you for your patience.

Regards,
Dinesh


AM Alberto Munoz December 21, 2009 03:46 PM UTC

Hi!

can you prepare the example?
I need add an icon in a rounrect node.

Thanks


DM Dinesh M Syncfusion Team December 22, 2009 12:55 PM UTC

Hi Alberto,

Please check the following sample in which we have customized the label control to have a icon in it.

http://help.syncfusion.com/support/Diagram.Windows/KB/LabelIcons/main.htm

Regards,
Dinesh


AM Alberto Munoz December 22, 2009 04:40 PM UTC

It's working ok. Now I can add icons in a roundrect.

My question now is, can I do something to execute a javascript function when the user click on the icon?

Thanks!!!


DM Dinesh M Syncfusion Team December 28, 2009 11:16 AM UTC

Hi Alberto,

It is not possible to call a javascript function on clicking the icon that you have created by customizing the label, however you can use OnClientNodeClick event to call javascript function on node click.

For further details about client side events please refer to the following online document.

http://help.syncfusion.com/UG/User%20Interface/ASP.NET/Diagram/Documents/4532clientsideevents.htm

Regards,
Dinesh


IM Ivan Mitev February 19, 2010 10:35 AM UTC

I am having the same question, but the link http://help.syncfusion.com/support/Diagram.Windows/KB/LabelIcons/main.htm does not see to be working any more.

Could you please, re-post the sample?


DM Dinesh M Syncfusion Team February 22, 2010 02:58 PM UTC

Hi Ivan,

We have fixed this broken link and now you can access the sample from it.

Regards,
Dinesh


DK Dimitri Karypov April 22, 2010 12:12 PM UTC

the link http://help.syncfusion.com/support/Diagram.Windows/KB/LabelIcons/main.htm does not see to be working any more. And I have the same question. Is it also possible for other shapes?
I want to use Essential Diagram for my Project, but with my own icons (.png) "instead of" or "combined" with other elements.

Thanks!


MW Melba Winshia Syncfusion Team April 29, 2010 12:33 PM UTC

Hi Dimitri,

We regret for the inconvenience caused.

Please download the file from the following link:

http://help.syncfusion.com/support/Diagram.Windows/KB/LabelIcons/Diagram_WF_DataModel.zip

You can use your own icons in the customized label control.

Please let me know if you have any other queries.

Thanks,
Melba

Loader.
Live Chat Icon For mobile
Up arrow icon