NetDiagram Programmer's Guide
Setting up Canvas Mode

In order to use Canvas mode, set ClientSideMode to Canvas and copy the 'MindFusion.Diagramming.js' file to your project's folder.


MindFusion.Diagramming.js is located in the NetDiagram\Redistributable folder after the installation. The same file can be used in both Visual Basic and C# projects.

By default, NetDiagram looks for the 'MindFusion.Diagramming.js' file, which contains the client-side Canvas control, in the same server folder where the current page is located. JsLibraryLocation lets you specify the path where the .js file is located, if for example you need to keep it on a centralized location on your server.

By default, the client-side scripts rely on the Microsoft AJAX framework for browser abstraction. You can load it by either placing a ScriptManager control on the page, or manually including the MicrosoftAjax.js library file. Alternatively use JQuery instead, by setting ClientScriptMode to JQuery and specifying its location via JQueryLocation.