Validation field right to the field

2 Answers 26 Views
DataForm
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Sami asked on 23 Nov 2023, 01:41 AM

Hi:

How can I set the data Form to show required fields validation message based on annotations to appear on the right of the field like this image;

WPF RadDataForm with Property-Level Validation

2 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 27 Nov 2023, 03:41 PM

Hi Sami,

You can see how to use data annotations in RadDataForm in the following help article.

Note that using this approach, the tooltip on the right of the invalid filed will be displayed automatically.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Sami
Top achievements
Rank 2
Iron
Iron
Iron
answered on 27 Nov 2023, 05:35 PM

Sorry for the confusion, I'm asking for the label at the right of the field. In the samples, the error message appears in the button of the rad data form. Thanks in advance.

 

Dinko
Telerik team
commented on 30 Nov 2023, 01:56 PM

Hi Sami,

By default, the tooltip on the right will be displayed automatically when you validate the data field.  You can take a look how to validate the DataForm control with data annotations (ValidationAtrributes) in the following article.

Can you try the approach in the documentation and let me know how it goes? If you couldn't achieve the desired behavior, could you give me more information about, what do you want to do with this label?

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DataForm
Asked by
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko
Telerik team
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or