Skip to main content
Tab

PopupWindow.HeaderTemplate Property

Gets or sets a template used to display the window’s header.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(null)]
public virtual ITemplate HeaderTemplate { get; set; }

Property Value

Type Default Description
ITemplate null

An object supporting the System.Web.UI.ITemplate interface which contains a template used to display the window’s header.

Remarks

Use the HeaderTemplate property to control the current popup window’s header. The template defined using this property replaces the window header - in particular, the image, text and close button displayed with the header.

Note that any style settings defined for the header via specific properties (such as the PopupWindow.HeaderStyle or ASPxPopupControl.HeaderStyle) are still in effect for the window’s header whose content is specified using the HeaderTemplate property.

Note

The value assigned to the HeaderTemplate property of a popup window overrides the value set for the popup control’s ASPxPopupControlBase.HeaderTemplate property (if any) which specifies a common header template for all popup windows from the ASPxPopupControl.Windows collection.

Note

Once a template defined via the HeaderTemplate property is created within a control, it is instantiated within a container object of the PopupControlTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.

See Also