DateRangePicker

Example

Razor
<kendo-daterangepicker>
    <messages />
    <month></month>
    <range />
</kendo-daterangepicker>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
adaptive-modeAdaptiveModeSpecifies the adaptive rendering of the component.
allow-reverseBooleanEnables the user to select an end date that is before the start date.
aria-templateStringSpecifies 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..
aria-template-handlerStringSpecifies 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..
aria-template-idStringSpecifies 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..
aria-template-viewIHtmlContentSpecifies 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..
as-moduleBoolean
auto-adjustBooleanIf 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.
auto-closeBooleanSpecifies whether the calendar popup should close automatically when a range is selected.
calendar-buttonBooleanIf 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.
clear-buttonBooleanIf 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.
cultureStringSpecifies the culture info used by the widget.
datesDateTime[]Specifies a list of dates, which will be passed to the month template.
depthCalendarViewSpecifies the navigation depth. The following settings are available for the depth value: "month" - Shows the days of the month. (default value); "year" - Shows the months of the year.; "decade" - Shows the years of the decade. or "century" - Shows the decades from the century..
disable-datesDateTime[]An array or function that will be used to determine which dates to be disabled for selection by the widget.
disable-dates-handlerStringThue function that will be used to determine which dates to be disabled in the calendar.
end-fieldStringSpecifies the end field name for model binding.
fill-modeFillModeSets a value controlling how the color is applied.
footerStringThe template which renders the footer of the calendar. If false, the footer will not be rendered.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
footer-handlerStringThe template which renders the footer of the calendar. If false, the footer will not be rendered.
formatStringSpecifies 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.
has-client-componentBoolean
input-modeStringSpecifies 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.
labelsBooleanDetermines if the labels for the inputs will be visible.
maxDateTimeSpecifies the maximum date, which the calendar can show.
minDateTimeSpecifies the minimum date that the calendar can show.
on-changeStringFires when the selected date is changed
on-closeStringFires when the calendar is closed
on-openStringFires when the calendar is opened
roundedRoundedSets a value controlling the border radius.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
sizeComponentSizeSets the size of the component.
startCalendarViewSpecifies 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..
start-fieldStringSpecifies the start field name for model binding.
week-numberBooleanIf 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.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support