MVCxVerticalGrid Class

The object of this type represents a configured instance of the corresponding extension and is intended to be used mainly as a sender parameter when processing events on the server side.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class MVCxVerticalGrid :
    ASPxVerticalGrid,
    IGridAdapterOwner,
    IWebDataOwner,
    IViewContext
Public Class MVCxVerticalGrid
    Inherits ASPxVerticalGrid
    Implements IGridAdapterOwner,
               IWebDataOwner,
               IViewContext

Remarks

NOTE

To add the VerticalGrid extension to the View, refer to the Vertical Grid Overview topic.

The object of MVCxVerticalGrid type represents the configured instance of the DevExpress ASP.NET MVC VerticalGrid extension. The MVCxVerticalGrid object is intended to be used mainly as a sender parameter when processing events on the server side.

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

View code:

@Html.DevExpress().VerticalGrid(
    settings =>
    {
        settings.Name = "verticalGrid";
        // ...
        // Assign a filter expression
        settings.PreRender = (sender, e) => {
            ((MVCxVerticalGrid)sender).FilterExpression = "UnitsInStock < 10";
        };
    }).Bind(Model).GetHtml()
NOTE

To properly follow the ASP.NET MVC pattern, it is recommended to respond to end-user actions on the client-side (see Client-Side API) or to use Ajax callbacks to the server and handle these callbacks using custom action methods (see Using Callbacks).

Implements

Show 43 items
DevExpress.Web.Internal.IWebControl
DevExpress.Web.Internal.IComponentHost
DevExpress.Web.IClientObjectOwner
DevExpress.Web.Internal.IPostBackDataHandlerEx
DevExpress.Web.Internal.IPostDataCollection
DevExpress.Web.Internal.IHandleCallbackError
DevExpress.Web.Data.IWebControlPageSettings
DevExpress.Web.Data.IWebDataEvents
DevExpress.Data.IDataControllerSort
DevExpress.Web.Internal.IWebColumnsOwner
DevExpress.Web.Internal.IRequiresLoadPostDataControl
DevExpress.Web.FilterControl.IPopupFilterControlOwner
DevExpress.Web.FilterControl.IFilterControlRowOwner
DevExpress.Web.FilterControl.IFilterControlOwner
DevExpress.Web.FilterControl.IPopupFilterControlStyleOwner
DevExpress.Web.IHeaderFilterPopupOwner
DevExpress.Web.Internal.ISkinOwner
DevExpress.Web.Internal.IPagerOwner
DevExpress.Web.Design.IControlDesigner
DevExpress.Web.IFormLayoutOwner
DevExpress.Web.IFormatConditionOwner
DevExpress.Web.Internal.IWebControlObject
DevExpress.Web.Internal.IGridExportOwner
DevExpress.Web.Internal.IFilterHelperOwner
DevExpress.Web.Internal.IBatchEditHelperOwner
DevExpress.Web.Internal.IPostBackValueSecureValidationOwner
DevExpress.Web.Data.IWebDataOwner
See Also