NDiagramCallbackService is undefined ???


Author
Message
Jeremy Radosh
Jeremy Radosh
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1

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


Reply
Jeremy Radosh
Jeremy Radosh
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1

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...

            for (int i = 0; i < technologies.Count; i++)
            {
                NShadowStyle ns = new NShadowStyle(Color.Black);
                technologies[i].m_Shape.Style.ShadowStyle = ns;
                technologies[i].m_Shape.Style.ShadowStyle.FadeLength = new NLength(2);
                technologies[i].m_Shape.Style.ShadowStyle.OffsetX = new NLength(1);
                technologies[i].m_Shape.Style.ShadowStyle.OffsetY = new NLength(2);

                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);
                }
            }


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search