Skip to main content
A newer version of this page is available. .

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

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