Skip to main content
A newer version of this page is available. .
Tab

ASPxValidationSummary.RenderMode Property

Gets or sets a value that specifies whether the errors within the ASPxValidationSummary are rendered as an ordered or bulleted list, or use the table HTML element.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(ValidationSummaryRenderMode.Table)]
public ValidationSummaryRenderMode RenderMode { get; set; }

Property Value

Type Default Description
ValidationSummaryRenderMode **Table**

One of the ValidationSummaryRenderMode enumeration values.

Available values:

Name Description
Table

Specifies that the errors within the ValidationSummaryRenderMode are rendered using the table element.

BulletedList

Specifies that the errors within the ValidationSummaryRenderMode are rendered as an bulleted list.

OrderedList

Specifies that the errors within the ValidationSummaryRenderMode are rendered as an ordered list.

Example

The following section of the Validation Summary online demo illustrates how to customize the settings of the ASPxValidationSummary control.

This settings are specified within a panel by using the ASPxRadioButtonList, ASPxCheckBox editors.

protected void Page_Load(object sender, EventArgs e) {
    ApplyValidationSummarySettings();
    ApplyEditorsSettings();
    if(!IsPostBack && !IsCallback)
        ASPxEdit.ValidateEditorsInContainer(this);
}

private void ApplyValidationSummarySettings() {
    vsValidationSummary1.RenderMode = (ValidationSummaryRenderMode)Enum.Parse(typeof
        (ValidationSummaryRenderMode), rblRenderMode.SelectedItem.Value.ToString());
    vsValidationSummary1.ShowErrorAsLink = chbShowErrorAsLink.Checked;
}

private void ApplyEditorsSettings() {
    ASPxEdit[] editors = new ASPxEdit[] { tbName, tbEmail };
    foreach(ASPxEdit editor in editors) {
        editor.ValidationSettings.ValidateOnLeave = chbValidateOnLeave.Checked;
        editor.ValidationSettings.SetFocusOnError = chbSetFocusOnError.Checked;
    }
}
See Also