New to KendoReactStart a free 30-day trial

Show invalid state for DateRangePicker if start date is after end date

Environment

Product Version5.14.1
ProductProgress® KendoReact DateRangePicker

Description

I want to set the DateRangePicker to invalid state or show error message if the start date is after the end date.

Solution

Set the "valid" property of the DateRangePicker to a state variable that can be changed to "true" or "false" within the onChange event of the DateRangePicker based on the "start" and "end" values.

This is an example showcasing the approach:

Change Theme
Theme
Loading ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support