Skip to main content

GridViewSettings.ClientSideEvents Property

Gets an object that lists the client-side events specific to the GridView.

Namespace: DevExpress.Web.Mvc

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

Declaration

public GridViewClientSideEvents ClientSideEvents { get; }

Property Value

Type Description
GridViewClientSideEvents

A GridViewClientSideEvents object that allows you to handle the component’s client-side events.

Remarks

The ClientSideEvents property provides access to a GridViewClientSideEvents object, which contains properties whose names correspond to the events available to the GridView on the client side. These properties enable handling the events by assigning the JavaScript functions to the required client-side events of GridView.

Example

Note

For a full example, see the Grid View - Focused Row demo.

@Html.DevExpress().GridView(settings => {
    settings.Name = "gvFocusedRow";
    settings.CallbackRouteValues = new { Controller = "Rows", Action = "FocusedRowPartial" };
    settings.ClientSideEvents.FocusedRowChanged = "OnGridFocusedRowChanged";
    ...
}).Bind(Model).GetHtml()
See Also