DiagramView.ClientSideMode Property
See Also

Specifies the method used for handling user interaction and drawing on the client side.

Namespace: MindFusion.Diagramming.WebForms
Package: MindFusion.Diagramming.WebForms


C#  Copy Code

public ClientSideMode ClientSideMode { get; set; }

Visual Basic  Copy Code

Public Property ClientSideMode As ClientSideMode

 Property Value

A member of the ClientSideMode enumeration. The default value is Canvas.


When in ImageMap mode, NetDiagram generates on the server a bitmap image that represents the diagram, and a client-side image map whose AREA tags correspond to the diagram items. Users can create or modify items on the client side in this mode. JavaScript functions can use DIV and IMG objects to vizualize the interaction with items. There are several server side events that let you handle clicks on diagram items, and a few events that let you custom-draw the items.

Canvas mode implements user interaction using JavaScript event handlers and draws on screen through the HTML5 Canvas element. By default it raises events on the client side, by calling functions whose names is specified via [EventName]Script properties, such as NodeCreatedScript. Setting AutoPostBack to true will post the page back after users' actions and raise events on the server side instead.

 See Also