Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Collapse]ASP.NET Bootstrap Controls
  ASP.NET Bootstrap Controls - Overview
 [Expand]Getting Started
 [Expand]Grid View
 [Expand]Card View
 [Expand]Scheduler
 [Expand]Charts
  Sparkline
 [Collapse]Data Editors
   Binary Image
   Button
   Button Edit
   Calendar
   Check Box
   Check Box List
   Combo Box
   Date Edit
   Dropdown Edit
   Hyperlink
   List Box
   Memo
   Progress Bar
   Radio Button
   Radio Button List
  [Expand]Range Selector
   Spin Edit
   Tag Box
   Text Box
   Time Edit
  [Expand]Upload Control
 [Expand]Site Navigation
 [Expand]Site Layout
 [Expand]Redistribution and Deployment
 [Expand]API Reference
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Button

The BootstrapButton control extends standard button functionality by providing an enhanced client API and allows to automatically trigger a validation mechanism for DevExpress web controls on both the client side and server side.

Bootstrap Button provides the following features:

  • Radio Button Functionality

    It is possible to create a set of mutually exclusive buttons (similar to the functionality found in radio buttons). This can be accomplished by using the ASPxButton.Checked property. To create a mutually exclusive set of buttons, use the ASPxButton.GroupName property to specify a group of button controls. Once the ASPxButton.GroupName property has been set, only one button in the specified group can be checked at one time. When a button's checked state is changed, the ASPxButton.CheckedChanged event is raised.

  • Built-in Validation

    The Bootstrap Button control allows you to perform data validation on both the client and server side.

  • Full-Featured Client-Side API

    Bootstrap Button provides a comprehensive client-side API. This API is implemented with JavaScript and is exposed via the BootstrapClientButton object. The BootstrapClientButton object serves as the client-side equivalent of the BootstrapButton control.

    You can operate with editor values using the following methods.

    Method Description
    ASPxClientButton.DoClick Simulates a mouse click action on the button control.
    ASPxClientButton.Focus Sets input focus to the button.
    ASPxClientButton.GetChecked Returns a value indicating whether the button is checked.
    ASPxClientButton.SetChecked Sets a value that specifies the button's checked status.
    ASPxClientButton.GetEnabled Returns a value indicating whether the button is enabled.
    ASPxClientButton.SetEnabled Sets a value specifying whether the button is enabled.
    BootstrapClientButton.GetText Returns the text displayed within the button.
    BootstrapClientButton.SetText Sets the text to be displayed within the button.

Is this topic helpful?​​​​​​​