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

CardViewExtension.SetEditErrorText(String) Method

Displays the specified (error) text in a special row at the bottom of the CardView's Edit Form.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll


public CardViewExtension SetEditErrorText(
    string message
Public Function SetEditErrorText(
    message As String
) As CardViewExtension


Name Type Description
message String

A string value specifying the text to be displayed at the bottom of the Edit Form.


Type Description

A CardViewExtension object representing the CardView extension.


If Model data is invalid or an error occurs during data changes, you can use the CardView's SetEditErrorText method to display a common error text in a special row at the bottom of the CardView's edit form.

This method can be used together with the automatic Model error visualization feature controlled by the CardView's MVCxCardViewEditingSettings.ShowModelErrorsForEditors property.

To learn more, see our online demo: Card View - Edit Modes

See Also