ButtonSettings.ClientSideEvents Property
In This Article
Gets an object that lists the client-side events specific to the Button.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public ButtonClientSideEvents ClientSideEvents { get; }
#Property Value
Type | Description |
---|---|
Button |
A 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