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

Start View and Navigation Depth

The DateTimePicker 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 DateTimePicker that allows the user to select a month.

    @(Html.Kendo().DateTimePicker()
        .Name("dateTimePicker")
        .Value(DateTime.Now)
        .Start(CalendarView.Year)
        .Depth(CalendarView.Year)
    )

See Also

In this article