Skip to main content


Button represents a push button control. The Button extends a standard button functionality by providing an enhanced client API, supporting the DevExpress’ appearance customization mechanism (Themes) and allowing all verifiable elements on a web page to be automatically validated on both the client side and server side.

Implementation Details

Button is realized by the ButtonExtension class. Its instance can be accessed via the ExtensionsFactory.Button helper method, which is used to add a Button extension to a view. This method’s parameter provides access to the Button‘s settings implemented by the ButtonSettings class, allowing you to fully customize the extension.

Button‘s client counterpart is represented by the ASPxClientButton object.


Button can be added to a view in the following manner.

<script type="text/javascript">
    function button1_CheckedChanged(s, e) {
        if (s.GetChecked()) {
            s.SetText("Enable Button");
        } else {
            s.SetText("Disable Button");

@Html.DevExpress().Button(settings => {
    settings.Name = "button1";
    settings.Text = "Disable Button";
    settings.Width = 120;
    settings.GroupName = "FakeGroup";
    settings.ClientSideEvents.CheckedChanged = "button1_CheckedChanged";

@Html.DevExpress().Button(settings => {
    settings.Name = "button2";
    settings.EnableClientSideAPI = true;


The Partial View should contain only the extension’s code.

The code result is demonstrated in the image below.