Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request : RadzenLabel bound to input component should be able to get the text from bound Input data annotation display attribute. #1757

Open
paritoshromy opened this issue Oct 26, 2024 · 3 comments

Comments

@paritoshromy
Copy link

One of the things that I loved about MVC is the asp-for on label elements. The ability to just provide the display name once as a data annotation and then reuse it at multiple places is really good.

Radzen label text needs to be typed as independent texts. If possible to pick the text from data annotation if custom text attribute is not specified. The label text should come from the component it is tied to. This will improve the development speed for CRUD forms a lot.

This thing can then be replicated to RadzenColumn and the Column header can come as default from the bound property data annotation attribute.

Another cool feature can be adding the required red star symbol if the data annotation has a required property.

@paritoshromy paritoshromy changed the title Feature Requested : RadzenLabel bound to input component should be able to get the text from Input data annotation display attribute Feature Request : RadzenLabel bound to input component should be able to get the text from Input data annotation display attribute. Oct 26, 2024
@paritoshromy paritoshromy changed the title Feature Request : RadzenLabel bound to input component should be able to get the text from Input data annotation display attribute. Feature Request : RadzenLabel bound to input component should be able to get the text from bound Input data annotation display attribute. Oct 26, 2024
@franklupo
Copy link

Good idea, but in my case the label must go through StringLocalizer.

Best regards

@paritoshromy
Copy link
Author

Localisation makes it bit tricky but I think that can be manageable through a custom function on the improved label component…need to give it a proper try though.

@franklupo
Copy link

global localization would be awesome. a method with 2 parameters type and text to translate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants