Kendo.Mvc.UI.Fluent.DateRangePickerBuilder
Defines the fluent API for configuring the Kendo DateRangePicker for ASP.NET MVC.
Methods
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 that configures the ariatemplate.
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
value System.String
The value that configures the ariatemplate.
Culture(System.String)
Specifies the culture info used by the widget.
Parameters
value System.String
The value that configures the culture.
Dates(System.DateTime[])
Specifies a list of dates, which will be passed to the month template.
Parameters
value System.DateTime[]
The value that configures the dates.
Depth(System.String)
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..
Parameters
value System.String
The value that configures the depth.
EndField(System.String)
Specifies the end field name for model binding.
Parameters
value System.String
The value that configures the 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 that configures the 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 that configures the format.
Max(System.DateTime)
Specifies the maximum date, which the calendar can show.
Parameters
value System.DateTime
The value that configures the 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 action that configures the messages.
Min(System.DateTime)
Specifies the minimum date that the calendar can show.
Parameters
value System.DateTime
The value that configures the min.
Month(System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerMonthSettingsBuilder>)
Templates for the cells rendered in the calendar "month" view.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.DateRangePickerMonthSettingsBuilder>
The action that configures the month.
Labels(System.Boolean)
Determines if the labels for the inputs will be visible.
Parameters
value System.Boolean
The value that configures the 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 that configures the weeknumber.
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 action that configures the range.
Start(System.String)
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 System.String
The value that configures the start.
StartField(System.String)
Specifies the start field name for model binding.
Parameters
value System.String
The value that configures the startfield.
Size(Kendo.Mvc.UI.ComponentSize)
Sets the size of the component.
Parameters
value Kendo.Mvc.UI.ComponentSize
The value that configures the size.
Rounded(Kendo.Mvc.UI.Rounded)
Sets a value controlling the border radius.
Parameters
value Kendo.Mvc.UI.Rounded
The value that configures the rounded.
FillMode(Kendo.Mvc.UI.FillMode)
Sets a value controlling how the color is applied.
Parameters
value Kendo.Mvc.UI.FillMode
The value that configures the fillmode.
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")
%>
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")
)
%>