- Home
- Forum
- ASP.NET MVC
- How to use AddInfo
How to use AddInfo
Hi, can you give me some guidance on how to use the AddInfo property of nodes?
- How to add items to AddInfo in MVC/.NET
- How to retrieve the values in JavaScript
Thanks for your help.
Ooops. I meant to put this in the ASP.NET MVC forum. Could you move it for me? Sorry, and thank you.
Hi Jeff
Thanks for using Syncfusion products.
|
Query |
Response |
|
Hi, can you give me some
guidance on how to use the AddInfo property of nodes? 1.
How to add items to AddInfo in
MVC/.NET 2.
How to retrieve the values in
JavaScript Thanks for your help. |
We have created a simple sample to meet your requirement
and attached below. Please see the code snippet below. //add items to addinfo Node add = CreateNode("add", 150, 50, 200, 200, "add"); Dictionary<string, object> addInfo = new Dictionary<string, object>(); addInfo.Add("email", "[email protected]"); add.AddInfo =
addInfo; model.Nodes.Add(add); function onclick(args) { var diagram = $("#Diagram1").ejDiagram("instance"); if (args.element.shape) { //retreiving addinfo values in javascript var addinfo =
args.element.addInfo.email;
alert(addinfo); } } |
Please let me know if any concerns.
Regards,
Shyam G
Attachment: addinfo_42671972.zip
Thanks for the sample. That worked well.
Hi Jeff,
Thanks for your reply.
We are happy to hear that the problem is resolved.
Regards,
Shyam G
- 6 Replies
- 3 Participants
-
JE Jeff
- Aug 28, 2014 05:11 AM UTC
- May 21, 2018 04:44 AM UTC