Skip to main content

ButtonSettings.ClientSideEvents Property

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

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public ButtonClientSideEvents ClientSideEvents { get; }

Property Value

Type Description
ButtonClientSideEvents

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

Remarks

The ClientSideEvents property provides access to an object of the ButtonClientSideEvents type. This object contains properties whose names correspond to the events available to the Button on the client side. These properties provide the capability to assign handling JavaScript functions to the required client-side events of the Button.

public ActionResult Index()
{
    return View();
}
public ActionResult Click()
{            
    return View();
}
public ActionResult ButtonAction(int customParameter)
{
    TempData["customParameter"] = customParameter;
    return RedirectToAction("Click");
}
See Also