Unplanned
Last Updated: 04 Mar 2020 11:41 by ADMIN
Dan
Created on: 02 Mar 2020 05:56
Category: DataForm
Type: Feature Request
3
DataForm - Change DataAnnotation NonEmptyValidator dynamically at runtime

Hi,

I am using DataForm for my project and in the process of implementing validation. For validation, I use DataAnnotation-NonEmptyValdator for the required fields.

Is there a way to change it dynamically in runtime?.

For example, I have 2 fields, the first field is always required. However, the second field is not always required, it depends on the selected item of the first field.

Thanks

Dan

1 comment
ADMIN
Yana
Posted on: 04 Mar 2020 11:41

Hello Dan,

I am afraid you've come across a non-supported scenario in RadDataForm - data annotations cannot be switched at runtime according to other editors' values.  

I have converted this thread directly into a public feature request,  so we have the scenario in mind. Please follow the item in the feedback portal to get notified on any status changes.

I am sorry for the caused inconvenience.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items