Hi Gyorgy Gorog,
We have created a MVC sample in which we have set an addInfo property for nodes and retrieved it in the client side(.cshtml file) using click event. Please refer to the code example and sample below.
Also please look in to highlighted code below which shows how to get addInfo property in click event which is defined in MVC.
Code example:
DiagramController.cs
BasicShape node = new BasicShape();
//create addInfo property for node
Dictionary<string, object> addInfo = new Dictionary<string, object>();
node.AddInfo = addInfo;
Diagram.Nodes.Add(node);
//define click event
Diagram.Click = "click";
function click(args) {
if (args.element) {
if (args.element.addInfo) {
//retrieve addInfo property
alert(args.element.addInfo.email);
}
}
}
Please let us know if any concerns.
Regards,
Shyam G