ASPxButtonEditBase.Buttons Property
Gets the collection of editor buttons.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public EditButtonCollection Buttons { get; }
#Property Value
Type | Description |
---|---|
Edit |
An Edit |
#Remarks
This property is a wrapper of the ButtonEditPropertiesBase.Buttons property. Refer to its description for more information.
ASPxButtonEdit:
<dx:ASPxButtonEdit ID="ASPxButtonEdit2" runat="server">
<ClientSideEvents ButtonClick="OnButtonClick" />
<Buttons>
<dx:EditButton Text="AA">
</dx:EditButton>
<dx:EditButton Text="BB">
</dx:EditButton>
</Buttons>
</dx:ASPxButtonEdit>
function OnButtonClick(s, e) {
var buttonElement = s.GetButton(e.buttonIndex);
alert("Button " + buttonElement.innerText + " is clicked");
}
Important
The Clear
Online Demo: Clear Button
The following example illustrates how to add the ‘Clear’ button to an editor.
<dx:ASPxButtonEdit ID="ASPxButtonEdit2" runat="server">
<Buttons>
...
</Buttons>
<ClearButton DisplayMode="Always"></ClearButton>
</dx:ASPxButtonEdit>