BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi, can you give me some guidance on how to use the AddInfo property of nodes?
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", "gs@gmail.com"); 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
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