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

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

Declaration

public CardViewExtension SetEditErrorText(
    string message
)

Parameters

Name Type Description
message String

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

Returns

Type Description
CardViewExtension

A CardViewExtension object representing the CardView extension.

Remarks

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