Skip to main content

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.v24.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()

Implements

Show 26 items
DevExpress.Web.Internal.IWebControl
DevExpress.Web.Internal.IComponentHost
DevExpress.Web.Internal.IWebControlObject
DevExpress.Web.IClientObjectOwner
DevExpress.Web.Internal.IPostBackDataHandlerEx
DevExpress.Web.Internal.IPostDataCollection
DevExpress.Web.Internal.IHandleCallbackError
DevExpress.Web.FormLayout.Internal.RuntimeHelpers.IDialogUtilsOwner
DevExpress.Web.Internal.IParentSkinOwner
DevExpress.Web.Internal.IRibbonBarOwner
DevExpress.Web.Internal.ISkinOwner
See Also