ButtonSettings.ClientSideEvents Property

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public ButtonClientSideEvents ClientSideEvents { get; }

Property Value

Type Description
ButtonClientSideEvents

A ButtonClientSideEvents object which allows assigning handlers to the client-side events available to the Button.

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