ASPxValidationSummary.HeaderText Property
Gets or sets the text content of an editor’s header.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A string value that specifies a header text. |
#Remarks
Use the HeaderText property to specify the text displayed within an editor’s header. The position of the text within the header is specified by the ASPxValidationSummary.HorizontalAlign and ASPxValidationSummary.VerticalAlign properties.
#Example
The following example demonstrates how to use the ASPxValidationSummary‘s ASPxValidationSummary.ValidationGroup property.
<dx:ASPxTextBox ID="tbEmail" runat="server" Width="200px">
<ValidationSettings ValidationGroup="TestGroup">
<RequiredField IsRequired="True" ErrorText="E-mail is required" />
<RegularExpression ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ErrorText="Invalid e-mail" />
</ValidationSettings>
</dx:ASPxTextBox>
<dx:ASPxValidationSummary ID="vsValidationSummary1" runat="server"
RenderMode="OrderedList" Width="243px" Paddings-PaddingLeft="14px"
HeaderText="Errors Summary:" ShowErrorsInEditors="True"
ValidationGroup="TestGroup">
<Paddings PaddingLeft="14px"></Paddings>
</dx:ASPxValidationSummary>