Tab
A newer version of this page is available. Switch to the current version.

ButtonEditPropertiesBase.ButtonTemplate Property

Gets or sets a common template used for rendering the editor's buttons.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(null)]
public virtual ITemplate ButtonTemplate { get; set; }
<DefaultValue(Nothing)>
Public Overridable Property ButtonTemplate As ITemplate

Property Value

Type Default Description
ITemplate

null

An object supporting the ITemplate interface that contains the template used for rendering all buttons within the editor.

Remarks

Use the ButtonTemplate property to create a template that defines the common manner in which all the editor's buttons are rendered.

Note that any style settings defined for the buttons via the editor's specific property (see ButtonEditPropertiesBase.ButtonStyle or ASPxButtonEditBase.ButtonStyle) are still in effect for the buttons when their contents are specified using the ButtonTemplate property.

NOTE

The ButtonTemplate property synchronizes its value with the editor's ASPxButtonEditBase.ButtonTemplate property.

NOTE

Once a template defined by this property is created, it is instantiated within a container represented by the TemplateContainerBase class. This class implements a set of properties which can be useful when designing a template and binding controls composing this template to data.

See Also