Defines the fluent API for configuring the Kendo UI DateRangePicker
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DateRangePickerBuilder : MvvmWidgetBuilderBase<DateRangePicker, DateRangePickerBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<DateRangePicker, DateRangePickerBuilder>MvvmWidgetBuilderBase<DateRangePicker, DateRangePickerBuilder>DateRangePickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DateRangePickerBuilder class.
Methods
Specifies the adaptive rendering of the component.
public DateRangePickerBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current DateRangePickerBuilder instance.
Allows customization of the subtitle's text in the adaptive view of the component.
public DateRangePickerBuilder AdaptiveSubtitle(string value)
The value for AdaptiveSubtitle
Returns:Returns the current DateRangePickerBuilder instance.
Allows customization of the title's text in the adaptive view of the component.
public DateRangePickerBuilder AdaptiveTitle(string value)
The value for AdaptiveTitle
Returns:Returns the current DateRangePickerBuilder instance.
Enables the user to select an end date that is before the start date.
public DateRangePickerBuilder AllowReverse()
Returns the current DateRangePickerBuilder instance.
Enables the user to select an end date that is before the start date.
public DateRangePickerBuilder AllowReverse(bool value)
The value for AllowReverse
Returns:Returns the current DateRangePickerBuilder instance.
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..
public DateRangePickerBuilder ARIATemplate(string value)
The value for ARIATemplate
Returns:Returns the current DateRangePickerBuilder instance.
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..
public DateRangePickerBuilder ARIATemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the ariatemplate.
Returns:Returns the current DateRangePickerBuilder instance.
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..
public DateRangePickerBuilder ARIATemplateHandler(string templateHandler)
The handler that returs the template for ARIATemplate
Returns:Returns the current DateRangePickerBuilder instance.
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..
public DateRangePickerBuilder ARIATemplateId(string templateId)
The ID of the template element for ARIATemplate
Returns:Returns the current DateRangePickerBuilder instance.
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..
public DateRangePickerBuilder ARIATemplateView(IHtmlContent templateView)
The view that contains the template for ARIATemplate
Returns:Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder AutoAdjust(bool value)
The value for AutoAdjust
Returns:Returns the current DateRangePickerBuilder instance.
Specifies whether the calendar popup should close automatically when a range is selected.
public DateRangePickerBuilder AutoClose(bool value)
The value for AutoClose
Returns:Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder CalendarButton()
Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder CalendarButton(bool value)
The value for CalendarButton
Returns:Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder ClearButton()
Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder ClearButton(bool value)
The value for ClearButton
Returns:Returns the current DateRangePickerBuilder instance.
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"></script>
public DateRangePickerBuilder Culture(string value)
The value for Culture
Returns:Returns the current DateRangePickerBuilder instance.
Specifies a list of dates, which will be passed to the month template.
public DateRangePickerBuilder Dates(params DateTime[] value)
The value for Dates
Returns:Returns the current DateRangePickerBuilder instance.
Specifies the navigation depth.
public DateRangePickerBuilder Depth(CalendarView value)
The value for Depth
Returns:Returns the current DateRangePickerBuilder instance.
Specifies the disabled dates in the DateRangePicker widget.
public DateRangePickerBuilder DisableDates(params DayOfWeek[] days)
A reference to the current DateRangePickerBuilder instance, to allow for method chaining.
Specifies the disabled dates in the DateRangePicker widget using a function.
public DateRangePickerBuilder DisableDates(string handler)
A reference to the current DateRangePickerBuilder instance, to allow for method chaining.
Specifies the end field name for model binding.
public DateRangePickerBuilder EndField(string value)
The value for EndField
Returns:Returns the current DateRangePickerBuilder instance.
Configures the client-side events.
public DateRangePickerBuilder Events(Action<DateRangePickerEventBuilder> configurator)
The client events action.
Returns:Returns the current DateRangePickerBuilder instance.
Sets a value controlling how the color is applied.
public DateRangePickerBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current DateRangePickerBuilder instance.
The template which renders the footer of the calendar. If false, the footer will not be rendered.
public DateRangePickerBuilder Footer(string value)
The value for Footer
Returns:Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder Format(string value)
The value for Format
Returns:Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current DateRangePickerBuilder instance.
Determines if the labels for the inputs will be visible.
public DateRangePickerBuilder Labels(bool value)
The value for Labels
Returns:Returns the current DateRangePickerBuilder instance.
Specifies the maximum date, which the calendar can show.
public DateRangePickerBuilder Max(DateTime value)
The value for Max
Returns:Returns the current DateRangePickerBuilder instance.
Allows localization of the strings that are used in the widget.
public DateRangePickerBuilder Messages(Action<DateRangePickerMessagesSettingsBuilder> configurator)
The DateRangePickerMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of DateRangePickerBuilder .
Specifies the minimum date that the calendar can show.
public DateRangePickerBuilder Min(DateTime value)
The value for Min
Returns:Returns the current DateRangePickerBuilder instance.
Specifies the month template that will be displayed in the popup calendar.
public DateRangePickerBuilder MonthTemplate(Action<MonthTemplateBuilder> configurator)
The configurator for the monthtemplate setting.
Returns:A reference to the current DateRangePickerBuilder instance, to allow for method chaining.
Configures the Kendo UI DateRangePicker range settings.
public DateRangePickerBuilder Range(Action<DateRangePickerRangeSettingsBuilder> configurator)
The DateRangePickerRangeSettingsBuilder for the range setting.
Returns:Returns the current instance of DateRangePickerBuilder .
Sets a value controlling the border radius.
public DateRangePickerBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current DateRangePickerBuilder instance.
Sets the size of the component.
public DateRangePickerBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current DateRangePickerBuilder instance.
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..
public DateRangePickerBuilder Start(CalendarView value)
The value for Start
Returns:Returns the current DateRangePickerBuilder instance.
Specifies the start field name for model binding.
public DateRangePickerBuilder StartField(string value)
The value for StartField
Returns:Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder WeekNumber()
Returns the current DateRangePickerBuilder instance.
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.
public DateRangePickerBuilder WeekNumber(bool value)
The value for WeekNumber
Returns:Returns the current DateRangePickerBuilder instance.