New to KendoReact? Start a free 30-day trial
Controlled Mode
Controlled ModePremium
Updated on Dec 19, 2025
By default, the DateRangePicker is in an uncontrolled state.
The DateRangePicker provides options for:
Controlling the Value
To manage the date value of the DateRangePicker:
Loading ...
Controlling the Popup State
To manage the popup state of the DateRangePicker and define whether the calendar will be displayed, use its show property.
jsx
import * as React from 'react';
import { DateRangePicker } from '@progress/kendo-react-dateinputs';
import { Button } from '@progress/kendo-react-buttons';
export function App() {
const [show, setShow] = React.useState(false);
const handleClick = () => {
setShow((prevShow) => !prevShow);
};
return (
<div className="row">
<div className="col-xs-12 col-md-12 example-col">
<p>Controlled DateRangePicker</p>
<DateRangePicker show={show} />
<Button onClick={handleClick}>Toggle</Button>
</div>
<div className="col-xs-12 col-md-12 example-col">
<p>Always shown</p>
<DateRangePicker show={true} />
</div>
</div>
);
}