# DateRangePickerBuilder

## Properties

### WriteAction - Func

## Methods

### DisableDates(System.Collections.Generic.IEnumerable)

Specifies the disabled dates in the DateRangePicker widget.

#### Parameters

##### disableDates - `System.Collections.Generic.IEnumerable<String>`

#### RETURNS

A reference to the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance, to allow for method chaining.

### DisableDates(System.DayOfWeek\[])

Specifies the disabled dates in the DateRangePicker widget.

#### Parameters

##### days - `System.DayOfWeek[]`

#### RETURNS

A reference to the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance, to allow for method chaining.

#### Example

```
 
                @(Html.Kendo().DateRangePicker()
                        .Name("DateRangePicker")
                        .DisableDates(DayOfWeek.Saturday, DayOfWeek.Sunday)
                )
             
```

### DisableDates(System.String)

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

#### Parameters

##### handler - `System.String`

#### RETURNS

A reference to the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance, to allow for method chaining.

#### Example

```
 
                @(Html.Kendo().DateRangePicker()
                        .Name("DateRangePicker")
                        .DisableDates("disableDates")
                )
             
```

### MonthTemplate(System.Action)

Specifies the month template that will be displayed in the popup calendar.

#### Parameters

##### configurator - System.Action<[MonthTemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/monthtemplatebuilder)>

The configurator for the monthtemplate setting.

#### RETURNS

A reference to the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance, to allow for method chaining.

#### Example

```
 
                 @(Html.Kendo().DateRangePicker()
                        .Name("DateRangePicker")
                        .MonthTemplate(m => m.Content("#= data.value #"))
                )
             
```

### AllowReverse(System.Boolean)

Enables the user to select an end date that is before the start date.

#### Parameters

##### value - `System.Boolean`

The value for AllowReverse

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### AllowReverse()

Enables the user to select an end date that is before the start date.

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### AutoClose(System.Boolean)

Specifies whether the calendar popup should close automatically when a range is selected.

#### Parameters

##### value - `System.Boolean`

The value for AutoClose

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### AdaptiveTitle(System.String)

Allows customization of the title's text in the adaptive view of the component.

#### Parameters

##### value - `System.String`

The value for AdaptiveTitle

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### AdaptiveSubtitle(System.String)

Allows customization of the subtitle's text in the adaptive view of the component.

#### Parameters

##### value - `System.String`

The value for AdaptiveSubtitle

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ARIATemplate(System.String)

Specifies a template used to populate value of the aria-label attribute of the currently focused cell of the calendar..The parameters available for the template are: current - The current focused date.; valueType - The focused item value type - month, year and etc. or text - A text representing the focused value..

#### Parameters

##### value - `System.String`

The value for ARIATemplate

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ARIATemplateId(System.String)

Specifies a template used to populate value of the aria-label attribute of the currently focused cell of the calendar..The parameters available for the template are: current - The current focused date.; valueType - The focused item value type - month, year and etc. or text - A text representing the focused value..

#### Parameters

##### templateId - `System.String`

The ID of the template element for ARIATemplate

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ARIATemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies a template used to populate value of the aria-label attribute of the currently focused cell of the calendar..The parameters available for the template are: current - The current focused date.; valueType - The focused item value type - month, year and etc. or text - A text representing the focused value..

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for ARIATemplate

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ARIATemplateHandler(System.String)

Specifies a template used to populate value of the aria-label attribute of the currently focused cell of the calendar..The parameters available for the template are: current - The current focused date.; valueType - The focused item value type - month, year and etc. or text - A text representing the focused value..

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for ARIATemplate

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ARIATemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Specifies a template used to populate value of the aria-label attribute of the currently focused cell of the calendar..The parameters available for the template are: current - The current focused date.; valueType - The focused item value type - month, year and etc. or text - A text representing the focused value..

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the ariatemplate.

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### AutoAdjust(System.Boolean)

If this property is enabled and you have configured min and/or max values, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value.

#### Parameters

##### value - `System.Boolean`

The value for AutoAdjust

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### CalendarButton(System.Boolean)

If this configuration is enabled, a calendar button will appear inside the date inputs. This is similar to the calendar button in the DatePicker component. The calendar popup will be opened only when the button is clicked. Clicking inside the input itself will have no effect.

#### Parameters

##### value - `System.Boolean`

The value for CalendarButton

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### CalendarButton()

If this configuration is enabled, a calendar button will appear inside the date inputs. This is similar to the calendar button in the DatePicker component. The calendar popup will be opened only when the button is clicked. Clicking inside the input itself will have no effect.

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ClearButton(System.Boolean)

If this configuration is enabled, a clear button will appear in the date inputs where a date is selected. Clicking on the clear button will remove the selected date from the input.

#### Parameters

##### value - `System.Boolean`

The value for ClearButton

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### ClearButton()

If this configuration is enabled, a clear button will appear in the date inputs where a date is selected. Clicking on the clear button will remove the selected date from the input.

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Culture(System.String)

Specifies the culture info used by the component. A valid kendo culture file must be added to the page in order for the example to work. \<script src="[https://cdn.jsdelivr.net/npm/@progress/kendo-ui@{version}/umd/cultures/kendo.culture.de-DE.min.js"\&gt;\&lt;/script](https://cdn.jsdelivr.net/npm/@progress/kendo-ui@%7Bversion%7D/umd/cultures/kendo.culture.de-DE.min.js%22\&gt;\&lt;/script)>

#### Parameters

##### value - `System.String`

The value for Culture

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Dates(System.DateTime\[])

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

#### Parameters

##### value - `System.DateTime[]`

The value for Dates

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### EndField(System.String)

Specifies the end field name for model binding.

#### Parameters

##### value - `System.String`

The value for EndField

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### 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

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### 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

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### InputMode(System.String)

Specifies the inputmode attribute of the inner \<input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.

#### Parameters

##### value - `System.String`

The value for InputMode

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

#### Example

```
 
            @(Html.Kendo().DateRangePicker()
              .Name("dateRangePicker")
              .InputMode("numeric")
            )
             
```

### Max(System.DateTime)

Specifies the maximum date, which the calendar can show.

#### Parameters

##### value - `System.DateTime`

The value for Max

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Messages(System.Action)

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

#### Parameters

##### configurator - System.Action<[DateRangePickerMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickermessagessettingsbuilder)>

The configurator for the messages setting.

#### RETURNS

Returns the current instance of [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) .

### Min(System.DateTime)

Specifies the minimum date that the calendar can show.

#### Parameters

##### value - `System.DateTime`

The value for Min

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Labels(System.Boolean)

Determines if the labels for the inputs will be visible.

#### Parameters

##### value - `System.Boolean`

The value for Labels

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### 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

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### 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.

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Range(System.Action)

Configures the Kendo UI DateRangePicker range settings.

#### Parameters

##### configurator - System.Action<[DateRangePickerRangeSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerrangesettingsbuilder)>

The configurator for the range setting.

#### RETURNS

Returns the current instance of [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) .

### Start(Kendo.Mvc.UI.CalendarView)

Specifies the start view. The following settings are available for the start value: "month" - Shows the days of the month.; "year" - Shows the months of the year.; "decade" - Shows the years of the decade. or "century" - Shows the decades from the century..

#### Parameters

##### value - [CalendarView](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/calendarview)

The value for Start

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### StartField(System.String)

Specifies the start field name for model binding.

#### Parameters

##### value - `System.String`

The value for StartField

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Depth(Kendo.Mvc.UI.CalendarView)

Specifies the navigation depth.

#### Parameters

##### value - [CalendarView](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/calendarview)

The value for Depth

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Size(Kendo.Mvc.UI.ComponentSize)

Sets the size of the component.

#### Parameters

##### value - [ComponentSize](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/componentsize)

The value for Size

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Rounded(Kendo.Mvc.UI.Rounded)

Sets a value controlling the border radius.

#### Parameters

##### value - [Rounded](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/rounded)

The value for Rounded

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### FillMode(Kendo.Mvc.UI.FillMode)

Sets a value controlling how the color is applied.

#### Parameters

##### value - [FillMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/fillmode)

The value for FillMode

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)

Specifies the adaptive rendering of the component.

#### Parameters

##### value - [AdaptiveMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/adaptivemode)

The value for AdaptiveMode

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

### Events(System.Action)

Configures the client-side events.

#### Parameters

##### configurator - System.Action<[DateRangePickerEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickereventbuilder)>

The client events action.

#### RETURNS

Returns the current [DateRangePickerBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/daterangepickerbuilder) instance.

#### Example

```
 
            @(Html.Kendo().DateRangePicker()
                  .Name("DateRangePicker")
                  .Events(events => events
                      .Change("onChange")
                  )
            )
             
```

### UseMvvmInitialization(System.Boolean)

Specifies if the component should be initialized through MVVM on the client.

#### Parameters

##### value - `System.Boolean`

The value.

#### RETURNS

Returns the current  instance.

### UseMvvmInitialization()

Specifies if the component should be initialized through MVVM on the client.

#### RETURNS

Returns the current  instance.

### ToComponent()

Returns the internal view component.

#### RETURNS

The  instance that represents the component.

### Expression(System.String)

Sets the name of the component.

#### Parameters

##### modelExpression - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

#### Parameters

##### modelExplorer - `Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer`

The name.

#### RETURNS

Returns the current  instance.

### Name(System.String)

Sets the name of the component.

#### Parameters

##### componentName - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

#### Parameters

##### deferred - `System.Boolean`

#### RETURNS

Returns a [DeferredWidgetBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/deferredwidgetbuilder) instance.

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Object`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Object`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### Render()

Renders the component in place.

### ToHtmlString()

Returns the HTML representation of the component.

### WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

#### Parameters

##### writer - `System.IO.TextWriter`

##### encoder - `System.Text.Encodings.Web.HtmlEncoder`

### ToClientTemplate()

Returns the client template for the component.

### AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

#### Parameters

##### value - `System.Boolean`

#### RETURNS

Returns the current  instance.
