New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Start View and Navigation Depth

The DateRangePicker enables you to set the initial view it renders and define the navigation depth of the views.

To define the initially rendered view, use the Start option. To control the navigation depth, use the Depth option.

The Calendar view supports the following predefined views:

  • Month—Shows the days of the month.
  • Year—Shows the months of the year.
  • Decade—Shows the years of the decade.
  • Century—Shows the decades of the century.

The following example demonstrates how to create a DateRangePicker that sets the start of a year and the navigation depth of a month.

    @(Html.Kendo().DateRangePicker()
        .Name("daterangepicker")
        .Start(CalendarView.Year)
        .Depth(CalendarView.Month)
    )

See Also

In this article