Kendo.Mvc.UI.Fluent.DateRangePickerBuilder

Defines the fluent API for configuring the Kendo UI DateRangePicker

Methods

DisableDates(System.DayOfWeek[])

Specifies the disabled dates in the DateRangePicker widget.

Example (ASPX)

<%= Html.Kendo().DateRangePicker()
    .Name("DateRangePicker")
    .DisableDates(DayofWeek.Saturday, DayOfWeek.Sunday)
%>

DisableDates(System.String)

Specifies the disabled dates in the DateRangePicker widget using a function.

Example (ASPX)

<%= Html.Kendo().DateRangePicker()
    .Name("DateRangePicker")
    .DisableDates("disableDates")
%>

MonthTemplate(System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerMonthTemplateSettingsBuilder>)

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerMonthTemplateSettingsBuilder>

The configurator for the monthtemplate setting.

ARIATemplate(System.String)

Specifies a template used to populate value of the aria-label attribute.

Parameters

value System.String

The value for ARIATemplate

ARIATemplateId(System.String)

Specifies a template used to populate value of the aria-label attribute.

Parameters

templateId System.String

The ID of the template element for ARIATemplate

Culture(System.String)

Specifies the culture info used by the widget.

Parameters

value System.String

The value for Culture

Dates(System.DateTime[])

Specifies a list of dates, which will be passed to the month template.

Parameters

value System.DateTime[]

The value for Dates

EndField(System.String)

Specifies the end field name for model binding.

Parameters

value System.String

The value for EndField

Footer(System.String)

The template which renders the footer of the calendar. If false, the footer will not be rendered.

Parameters

value System.String

The value for Footer

Format(System.String)

Specifies the format, which is used to format the value of the DateRangePicker displayed in the input. The format also will be used to parse the input.For more information on date and time formats please refer to Date Formatting.

Parameters

value System.String

The value for Format

Max(System.DateTime)

Specifies the maximum date, which the calendar can show.

Parameters

value System.DateTime

The value for Max

Messages(System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerMessagesSettingsBuilder>)

Allows localization of the strings that are used in the widget.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerMessagesSettingsBuilder>

The configurator for the messages setting.

Min(System.DateTime)

Specifies the minimum date that the calendar can show.

Parameters

value System.DateTime

The value for Min

Labels(System.Boolean)

Determines if the labels for the inputs will be visible.

Parameters

value System.Boolean

The value for Labels

WeekNumber(System.Boolean)

If set to true a week of the year will be shown on the left side of the calendar. It is possible to define a template in order to customize what will be displayed.

Parameters

value System.Boolean

The value for WeekNumber

WeekNumber

If set to true a week of the year will be shown on the left side of the calendar. It is possible to define a template in order to customize what will be displayed.

Range(System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerRangeSettingsBuilder>)

Configures the Kendo UI DateRangePicker range settings.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerRangeSettingsBuilder>

The configurator for the range setting.

StartField(System.String)

Specifies the start field name for model binding.

Parameters

value System.String

The value for StartField

Start(Kendo.Mvc.UI.CalendarView)

Parameters

value Kendo.Mvc.UI.CalendarView

The value for Start

Depth(Kendo.Mvc.UI.CalendarView)

Specifies the navigation depth.

Parameters

value Kendo.Mvc.UI.CalendarView

The value for Depth

Events(System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().DateRangePicker()
    .Name("DateRangePicker")
    .Events(events => events
        .Change("onChange")
    )
)
In this article
Not finding the help you need?