BackwardCompatibilitySettings.EnableDataAnnotationAttributesSupport Property
Specifies whether the editors support data annotation attributes.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v21.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to enable editors to support data annotation attributes; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to EnableDataAnnotationAttributesSupport |
---|---|
ASPxWebControl |
|
Remarks
The following example illustrates how to disable the editor support for data annotation attributes.
Global.asax:
void Application_Start(object sender, EventArgs e) {
ASPxWebControl.BackwardCompatibility.EnableDataAnnotationAttributesSupport = false;
}
See Also