# DateRange Popup Options

The DateRange popup displays a [MultiViewCalendar](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent) next to the initially loaded [DateInput](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/dateinputcomponent) by utilizing the [`DateRangePopup`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent) component.

The `DateRangePopup` is registered into the common `DateRangeService` instance of the DateRange. In this way, it renders a notification about changes in the start and end dates within the selected date range.

By default, the visibility of the DateRange popup is controlled by the [`DateRangeStartInputDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangestartinputdirective) or [`DateRangeEndInputDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangeendinputdirective) inputs. When the user focuses either of the inputs, the DateRange popup appears. When the user moves the focus away from both inputs or from the calendar, the DateRange popup closes.

The following example demonstrates the `DateRangePopup` component in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/basic_usage/source.txt)

## Visibility Control

To show or hide the popup, use the [`toggle`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent#toggle) method.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/visibility_control/source.txt)

## Animations

The `DateRangePopup` component exposes the configuration of the [Popup animations](https://www.telerik.com/kendo-angular-ui-develop/components/popup/animations). To control the behavior of its animations, use the [`animate`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent#animate) property.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/popup_animations/source.txt)

## Appending

By default, the `DateRangePopup` appends the Popup to the first root component which is available in the `ApplicationRef` class. To change this behavior, use the [`appendTo`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent#appendto) option.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/appendto/source.txt)

## Aligning

The `DateRangePopup` allows you to change the anchor of the [Popup](https://www.telerik.com/kendo-angular-ui-develop/components/popup/aligning-positioning#aligning-to-components) by using the [`anchor`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent#anchor) property. By default, the anchor is set to the DateInput which is decorated with the `DateRangeStartInputDirective`.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/anchor/source.txt)

## Positioning

The `DateRangePopup` exposes the [positioning configuration of the Popup](https://www.telerik.com/kendo-angular-ui-develop/components/popup/aligning-positioning#positioning) and allows you to align the Popup and the anchor based on nine pivot points. To change the anchor pivot points, use the [`anchorAlign`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent#anchoralign) option. To change the Popup pivot point, use the [`popupAlign`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent#popupalign) option.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/align/source.txt)

## Calendar Configuration

The `DateRangePopup` exposes properties to configure the displayed MultiViewCalendar. You can control view settings, date constraints, display options, and navigation behavior. For more information, refer to the article on [Calendar Configuration](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/daterange/calendar-configuration).

The following example demonstrates how to configure the calendar views.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/calendar_configuration/source.txt)

## Rendering the Content

The `DateRangePopup` renders a default [`MultiViewCalendar`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent) component. To manage the content of the Popup and render different or additional content, use an Angular template which is decorated with the [`kendoDateRangePopupTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopuptemplatedirective) directive.

> In order for the MultiViewCalendar to update the selection range, decorate the component with the `DateRangeSelection` directive.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/template/source.txt)

## Events

The `DateRangePopup` emits a number of events which enable you to control its behavior upon user interaction.

The following example demonstrates all events the `DateRangePopup` features.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/daterange/popup/events/source.txt)

## Suggested Links

* [Calendar Configuration](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/daterange/calendar-configuration)
* [Disabled Dates](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/daterange/disabled-dates)
* [API Reference of the DateRange](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangecomponent)
* [API Reference of the MultiViewCalendar](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent)
* [`DateRangePopupComponent`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent)
* [`DateRangeSelectionDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangeselectiondirective)
* [`DateRangeStartInputDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangestartinputdirective)
* [`DateRangeEndInputDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangeendinputdirective)
