All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

MVCxDiagram Class

A configured instance of the Diagram extension that the sender parameter returns in server-side events.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public class MVCxDiagram :
    ASPxDiagram
Public Class MVCxDiagram
    Inherits ASPxDiagram

Remarks

The object of the MVCxDiagram type is the configured instance of DevExpress ASP.NET MVC Diagram extension. The MVCxDiagram object should be used as a sender parameter when events are processed on the server side.

The code sample below illustrates how to use the MVCxDiagram object in the delegate method that processes the SettingsBase.PreRender server event.

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";
    settings.PreRender = (sender, e) =>
        {
            MVCxDiagram diagram = (MVCxDiagram)sender;
            // your custom actions
        };
}).Import(Model).GetHtml()
See Also