Skip to content

Commit deb76b5

Browse files
983104: Updated
1 parent 3d62dba commit deb76b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

blazor/data-form/data-annotation-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation: ug
99

1010
# Data annotation attributes
1111

12-
The DataForm component supports .NET data annotation attributes from [System.ComponentModel.DataAnnotations](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations?view=net-8.0) to control labels, placeholders, auto-generation, editability, and validation behavior.
12+
The DataForm component supports .NET data annotation attributes from [System.ComponentModel.DataAnnotations](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations?view=net-8.0) to control labels, placeholders, auto-generation, editable, and validation behavior.
1313

1414
## Display attribute
1515

blazor/data-form/localization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ Follow these steps to configure localization for label text and validation error
1717

1818
1. After integrating localization files in the application as described in the [Blazor localization](https://blazor.syncfusion.com/documentation/common/localization) topic, open the required culture resource file in Visual Studio.
1919

20-
![Localization step 1: open the culture-specific .resx file](./images/blazor_dataform_localization_step.png)
20+
![Localization step-1](./images/blazor_dataform_localization_step.png)
2121

2222

2323
2. In the opened resource file, select Add Resource and include the appropriate key with the corresponding localized text as shown.
2424

25-
![Localization step 2: add resource keys and values for labels and messages](./images/blazor_dataform_localization_step1.png)
25+
![Localization step-2](./images/blazor_dataform_localization_step1.png)
2626

2727
3. Specify the [ResourceType](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.displayattribute.resourcetype?view=net-8.0#system-componentmodel-dataannotations-displayattribute-resourcetype) (from the Resources folder) and the resource key in the [Display](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.displayattribute?view=net-8.0) attribute of the corresponding model property to localize labels. Similarly, localize validation messages by setting [ErrorMessageResourceType](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validationattribute.errormessageresourcetype?view=net-8.0#system-componentmodel-dataannotations-validationattribute-errormessageresourcetype) and [ErrorMessageResourceName](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validationattribute.errormessageresourcename?view=net-8.0#system-componentmodel-dataannotations-validationattribute-errormessageresourcename) on attributes such as [Required](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.requiredattribute?view=net-8.0), as shown below.
2828

29-
| ![Localization step 3: use Display with ResourceType and Name for localized labels](./images/blazor_dataform_localization_step3.png) | ![Localization step 3: set ErrorMessageResourceType and ErrorMessageResourceName for validation messages](./images/blazor_dataform_localization_step3_2.png) |
29+
| ![Localization step 3](./images/blazor_dataform_localization_step3.png) | ![Localization step 3](./images/blazor_dataform_localization_step3_2.png) |
3030

3131
{% tabs %}
3232
{% highlight razor tabtitle="Razor" %}

0 commit comments

Comments
 (0)