The requested page is not available for the requested platform. You are viewing the content for Default platform.

ButtonSettings Class

Contains the Button extension settings.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class ButtonSettings :
    SettingsBase
Public Class ButtonSettings
    Inherits 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