This is a migrated thread and some comments may be shown as answers.

How to validate form controls?

2 Answers 207 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 16 May 2018, 04:37 AM

Is there a way too validate the dropdown and date picker with the new react components?

Thanks

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 May 2018, 06:21 AM
Hello, Chris,

Some of the components have built-in validation for some scenarios.

For example, the Date and Numeric components have min and max validation which will prevent the user to type a value which is not in the range:

https://www.telerik.com/kendo-react-ui/components/dateinputs/api/DatePickerProps/#toc-min

https://www.telerik.com/kendo-react-ui/components/dateinputs/api/DatePickerProps/#toc-max

Also, the Number and Date components will allow only setting valid number and dates.

The other validation has to be done programmatically by the developer depending on the requirements of the change event of the component:

https://www.telerik.com/kendo-react-ui/components/dateinputs/api/DatePickerChangeEvent/

Let me know if you need additional information on this matter.

Regards,
Stefan
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
0
Chris
Top achievements
Rank 1
answered on 16 May 2018, 01:50 PM
Ok, thanks
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Chris
Top achievements
Rank 1
Share this question
or