I'm a new customer and I'm simply trying to implement the Spring Layout based on the sample code provided (http://examplesaspnetdiagram.nevron.com/ -> Layouts -> Spring Layout). I can get the code to work if I omit the properties AjaxEnabled="True", OnAsyncCustomCommand and OnAsyncQueryCommandResult from the NDrawingView tag. However if I leave them in I get the following run-time error... "NDiagramCallbackService is undefined". I cannot find any documentation on "NDiagramCallbackService" (or course it doesn't help that the search function is not working on your documentation web site).
Any ideas what's going on?
Thanks
Jeremy
Best Regards,Nevron Support Team
I added the httpHandler line and also set the references to "copy local" and the problem went away. However the "script" tag is not in the source of the page.
My next problem... I want tooltips and clickable nodes on my spring diagram. I've added code to accomplish this, but yet nothing renders in the browser (no tooltip or clickable link).
The code is here...
NInteractivityStyle xxx = new NInteractivityStyle(true, "1", "test tooltip", CursorType.Arrow, "http://my.yahoo.com"); xxx.GenerateImageMapObject = true; xxx.GeneratePostback = true; technologies[i].m_Shape.Style.InteractivityStyle = xxx; Document5 = NDrawingView5.Document; Document5.EventSinkService.NodeClick += new NodeViewEventHandler(EventSinkService_NodeClick);
if (technologies[i].m_Enables == null) { for (int x = 0; x < technologies.Count; x++) { if (x == i) continue; if (technologies[x].m_Enables == technologies[i]) { NDrawingView5.Document.ActiveLayer.AddChild(technologies[i].m_Shape); break; } } } else { NDrawingView5.Document.ActiveLayer.AddChild(technologies[i].m_Shape); } }
Regarding the interactivity styles – take a look at the Image Map online example. It demonstartes how to show tooltips and redirect the browser to another page when the user clicks on a shape.
I saw that example and took some code from it. However I cannot get it to work in the spring layout example (see my code fragment previously posted).
What step am I missing to make the tooltips show up?