I have downloaded the trial version of NetDiagram (for ASP.NET) and am in the process of evaluating the package. So far, I'm very impressed by the built-in features, stability of the product and flexibility/freedom to create all sorts of diagrams!
I did stumble across one particular challenge - styling a ShapeNode when my DiagramView.ClientSideMode is set to "Canvas". This is my code (the code block below is only styled as C++, but my actual code is in C#):
Diagram diagram = MyDiagramView.Diagram;
Factory factory = diagram.Factory;
// this does NOT work in "Canvas" mode
diagram.LinkCrossings = LinkCrossings.Arcs;
...
ShapeNode node = factory.CreateShapeNode(0, 0, 40, 20);
// I'm dynamically setting the Id for each of the nodes in my graph (i.e. 'parentRecordId' is different for each node)
node.Id = parentRecordId;
node.Brush = new SolidBrush(System.Drawing.Color.WhiteSmoke);
// enabling styled text
node.PolygonalTextLayout = node.EnableStyledText = true;
// the diagram does NOT render when I set the "Text" property to a styled format
node.Text = String.Format("{0}\n\n<b>{1}</b>", parentRecordId, parentRecordName);
...
When I run this in "Canvas" mode, the diagram does
not render at all. BUT this same code works just fine when in "ImageMap" mode. I did not find anything in the documentation stating that Styled Text is only compatible with "ImageMap" mode, that is why I need your help.
I also noticed that this does not work in "Canvas" mode:
MyDiagramView.Diagram.LinkCrossings = LinkCrossings.Arcs;
One last thing - could you also guide me in how to change the mouse cursor on "NodeMouseEnterScript" client-side event (i.e. how can I change the mouse cursor when the user hovers over a node in the diagram)?
Many thanks!!