A newer version of this page is available.
Switch to the current version.
BootstrapButtonEdit Class
Represents an edit control with embedded buttons.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v18.2.dll
Declaration
[ToolboxTabName("DX.18.2: Bootstrap Controls")]
[DXClientDocumentationProviderWeb("BootstrapButtonEdit")]
public class BootstrapButtonEdit :
ASPxButtonEdit,
ISimpleRenderControl,
IBootstrapEditorCssClassesOwner
<ToolboxTabName("DX.18.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapButtonEdit")>
Public Class BootstrapButtonEdit
Inherits ASPxButtonEdit
Implements ISimpleRenderControl,
IBootstrapEditorCssClassesOwner
Remarks
NOTE
The BootstrapButtonEdit control provides you with comprehensive client-side functionality implemented using JavaScript code (see DevExpress.Web.Bootstrap.Scripts to learn more):
- The control's client-side equivalent is represented by the BootstrapClientButtonEdit object.
- On the client side, the client object can be accessed directly by the name specified via the ASPxEditBase.ClientInstanceName property.
- The available client events can be accessed by using the ASPxButtonEdit.ClientSideEvents property.
The control's client-side API is enabled if the ASPxEditBase.EnableClientSideAPI property is set to true, or the ASPxEditBase.ClientInstanceName property is defined, or any client event is handled.
Examples
This example demonstrates the Button Edit control with default settings.
- Initialize a new instance of the BootstrapButtonEdit class.
- Use the ASPxTextEdit.Text property to specify the button's text.
- Handle the ASPxButtonEditBase.ButtonClick event occurring once the button is clicked.
The image below shows the result:
<dx:BootstrapButtonEdit runat="server" Text="Sample Text">
<ClientSideEvents ButtonClick="function(s,e) { dxbsDemo.showToast('The button has been clicked.'); }" />
<Buttons>
<dx:BootstrapEditButton />
</Buttons>
</dx:BootstrapButtonEdit>
Inheritance
See Also
Feedback