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

How to do basic Operation in Javascript Syncfusion Diagram

Thread ID:





116936 Jul 4,2014 08:20 AM UTC Jul 7,2014 06:10 AM UTC JavaScript 1
Tags: ejDiagram
Asked On July 4, 2014 08:20 AM UTC

Dear Syncfusion,

I have followed the instruction in the online documentation for syncfusion javascript diagram , Those article tells about how to initialize and create diagram at very first time when page was loaded. But I have a question, about how I add or delete a node at the current diagram?  Please just give me a sample code for this problem. I've try to find something in Class Reference but I have found nothing. It would be better you can provide more references.. (I have file attached if you want to analize it :) )

Thank's and Best Regards,


Attachment: Index_645ba70e.rar

Shyam G [Syncfusion]
Replied On July 7, 2014 06:10 AM UTC

Hi Syukur,

Thanks for using Syncfusion products.

We are glad to inform you that we have created a simple sample to represent how to perform add and delete a node in Diagram JS. Please see the code snippet below.

1.Delete a node.


2.Add a node.

var node = { name: ej.Diagram.Util.randomId(), width: 50, height: 50, offsetX: 400, offsetY: 200, type: "node", shape: { type: "rectangle" } };


Please let me know if any concerns.


Shyam G

Attachment: WebApplication6_(3)_cb654298.zip


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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