Slavcho wrote on Oct 20
th, 2016 at 1:27pm:
Hi,
If using the default Canvas mode, you will have to implement your custom node class in JavaScript too, along with JSON serialization for any properties you are adding. For an example, see IconNodes\Scripts\CustomNode.js in installed sample projects.
Regards,
Slavcho
Mindfusion
Well, I had implemented node class in JS and created and registered converters, I did this by example that you mentioned.
Maybe I need something to declare in order it to work?
I tried adding NodeListView to MindFusion IconNodes sample, I am getting same problem.
Added this code to IconNode Example:
<ndiag:NodeListView
ID="nodeListView"
runat="server"
ClientSideMode="Canvas"
JsLibraryLocation="Scripts/MindFusion/MindFusion.Diagramming.js"
style="position: absolute; top: 5px; left: 0px; right: 0px; bottom: 0px; width: 200px; height: auto; overflow: auto;" />
var custom= new CustomNode();
nodeListView.AddNode(custom, "Custom"); // NodeListView not showing this node
It works only if I use as prototype: var workflowStart = new CustomNode();
workflowStart.Shape = Shapes.Arrow3;
var start = new MindFusion.Diagramming.ShapeNode(workflowStart);