Auto-append * to RadzenLabel

It would be very useful if RadzenLabel could automatically display red * next to the label text when the corresponding component has a RadzenRequiredValidator.
This would make it easier to visually indicate required fields to users without manually modifying each label.

Optionally, this behavior could be controlled with a parameter, e.g.:
<RadzenLabel Text="First Name" Component="FirstName" ShowRequiredIndicator="true" />

You can try the following css code visually indicate required '*'

input.required::after,
.rz-label.required::after,
.rz-form-field.required .rz-form-field-label::after {
    content: "*";
    color: red;
}
2 Likes