# Calendar Navigation

The user can navigate through several different views in a calendar - from a century, to a month. You can control in which view the user starts, the date which the calendar shows initially, how deep the user can go, and to also navigate to a desired date and view with code.

The calendar shows arrows that let the user flip between the adjacent periods. Clicking the `Today` button at the top navigates to a period in the current view that includes the current date.

For example, if the current date is April 2019, and the current view is the Month view, the user can press the back and forward arrows to go, respectively, to March 2019 and May 2019.

You can control how far the user can go by setting the `Min` and `Max` properties.

> caption Previous and Next navigation is enabled by default. You can control the min and max range of dates the user can navigate through

<demo metaUrl="client/calendar/navigation/range/" height="500"></demo>

> caption The result from the code snippet above

![Blazor Prev Next Navigation](https://www.telerik.com/blazor-ui/documentation/assets/14d1ba2b90f59f53ac25d5f94b7a011c/prev-next-navigation.png)

## Toggle View Details Up and Down

The calendar offers several views that show the user different periods of time:

* `Century`
* `Decade`
* `Year`
* `Month`

The user can click on an item in the current view to go to the more detailed view. They can click the current range at the top to navigate to the larger view where navigating bigger portions of time is easier (for example, years, or even decades).

To control the initial view, set the `View` property to a member of the `Telerik.Blazor.CalendarView` enum, as listed above.

To control how much detail the user can go into, set the [`BottomView` and `TopView`](https://www.telerik.com/blazor-ui/documentation/components/calendar/navigation#topview-and-bottomview) parameters to a member of the same enum.

> caption Control current view and how deep the user can go

<demo metaUrl="client/calendar/navigation/view-depth/" height="500"></demo>

## TopView and BottomView

`BottomView` sets the greatest level of detail the user can navigate. Its default value is `CalendarView.Month`. If `View` is not set, the Calendar will initially display its `BottomView`.

`TopView` sets the least level of detail (i.e. greatest level of date aggregation). Its default value is `CalendarView.Century`.

## Programmatic Navigation

You can make the Calendar component move to a certain date and view through its `Date` and `View` parameters that support two-way binding. The constraints of the min/max and top/bottom view apply to programmatic navigation as well as to user navigation.

> caption Navigate the Calendar to a date and view programmatically

<demo metaUrl="client/calendar/navigation/programmatic/" height="500"></demo>

## See Also

* [Live Demo: Calendar](https://demos.telerik.com/blazor-ui/calendar/overview)
