Skip to main content

ButtonSettings Class

Contains the Button extension settings.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public class ButtonSettings :
    SettingsBase

Remarks

To declare the Button in a View, invoke the ExtensionsFactory.Button helper method. This method returns the Button extension that is implemented by the ButtonExtension class.

To configure the Button extension, pass the ButtonSettings object to the ExtensionsFactory.Button helper method as a parameter. The ButtonSettings object contains all the Button extension settings.

Refer to the Button Overview topic to learn how to add the Button extension to your project.

The following example illustrates how to use the Button extension.

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

Inheritance

Object
SettingsBase
ButtonSettings
See Also