Defines the fluent API for configuring the Kendo DateRangePicker for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DateRangePickerBuilder : WidgetBuilderBase<DateRangePicker, DateRangePickerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<DateRangePicker, DateRangePickerBuilder>DateRangePickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DateRangePicker class.
public DateRangePickerBuilder(DateRangePicker component)
The component.
Methods
Specifies the adaptive rendering of the component.
public DateRangePickerBuilder AdaptiveMode(AdaptiveMode value)
The value that configures the adaptivemode.
Returns:Allows customization of the subtitle's text in the adaptive view of the component.
public DateRangePickerBuilder AdaptiveSubtitle(string value)
The value that configures the adaptivesubtitle.
Returns:Allows customization of the title's text in the adaptive view of the component.
public DateRangePickerBuilder AdaptiveTitle(string value)
The value that configures the adaptivetitle.
Returns:Enables the user to select an end date that is before the start date.
public DateRangePickerBuilder AllowReverse(bool value)
The value that configures the allowreverse.
Returns: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 that configures the ariatemplate.
Returns: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: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 value)
The value that configures the ariatemplate.
Returns: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 value)
The value that configures the ariatemplate.
Returns: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(MvcHtmlString value)
The value that configures the ariatemplate.
Returns: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 that configures the autoadjust.
Returns:Specifies whether the calendar popup should close automatically when a range is selected.
public DateRangePickerBuilder AutoClose(bool value)
The value that configures the autoclose.
Returns: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 that configures the calendarbutton.
Returns: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 that configures the clearbutton.
Returns:Specifies the culture info used by the widget.
public DateRangePickerBuilder Culture(string value)
The value that configures the culture.
Returns:Specifies a list of dates, which will be passed to the month template.
public DateRangePickerBuilder Dates(params DateTime[] value)
The value that configures the dates.
Returns:Specifies 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..
public DateRangePickerBuilder Depth(string value)
The value that configures the depth.
Returns:Specifies the disabled dates in the DateRangePicker widget.
public DateRangePickerBuilder DisableDates(IEnumerable<string> disableDates)
Specifies the disabled dates in the DateRangePicker widget.
public DateRangePickerBuilder DisableDates(params DayOfWeek[] days)
Specifies the disabled dates handler in the DateRangePicker widget using a function.
Specifies the end field name for model binding.
public DateRangePickerBuilder EndField(string value)
The value that configures the endfield.
Returns:Configures the client-side events.
public DateRangePickerBuilder Events(Action<DateRangePickerEventBuilder> configurator)
The client events action.
Returns:Sets a value controlling how the color is applied.
public DateRangePickerBuilder FillMode(FillMode value)
The value that configures the fillmode.
Returns:The template which renders the footer of the calendar. If false, the footer will not be rendered.
public DateRangePickerBuilder Footer(string value)
The value that configures the footer.
Returns: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 that configures the format.
Returns:Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public DateRangePickerBuilder InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:Determines if the labels for the inputs will be visible.
public DateRangePickerBuilder Labels(bool value)
The value that configures the labels.
Returns:Specifies the maximum date, which the calendar can show.
public DateRangePickerBuilder Max(DateTime value)
The value that configures the max.
Returns:Allows localization of the strings that are used in the widget.
public DateRangePickerBuilder Messages(Action<DateRangePickerMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Specifies the minimum date that the calendar can show.
public DateRangePickerBuilder Min(DateTime value)
The value that configures the min.
Returns:Templates for the cells rendered in the calendar "month" view.
public DateRangePickerBuilder Month(Action<MonthTemplateBuilder> configurator)
The action that configures the month.
Returns:Configures the Kendo UI DateRangePicker range settings.
public DateRangePickerBuilder Range(Action<DateRangePickerRangeSettingsBuilder> configurator)
The action that configures the range.
Returns:Sets a value controlling the border radius.
public DateRangePickerBuilder Rounded(Rounded value)
The value that configures the rounded.
Returns:Sets the size of the component.
public DateRangePickerBuilder Size(ComponentSize value)
The value that configures the size.
Returns: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(string value)
The value that configures the start.
Returns:Specifies the start field name for model binding.
public DateRangePickerBuilder StartField(string value)
The value that configures the startfield.
Returns: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 that configures the weeknumber.
Returns: