Defines the fluent interface for configuring the DatePickerBase component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TPicker
TPickerBuilder
Syntax:
public class DatePickerBuilderBase<TPicker, TPickerBuilder> : WidgetBuilderBase<TPicker, TPickerBuilder>, IHtmlString where TPicker : DatePickerBase where TPickerBuilder : WidgetBuilderBase<TPicker, TPickerBuilder>
Inheritance: objectWidgetBuilderBase<TPicker, TPickerBuilder>DatePickerBuilderBase<TPicker, TPickerBuilder>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the DatePickerBuilderBase<TPicker, TPickerBuilder> class.
public DatePickerBuilderBase(TPicker component)
The component.
Methods
public TPickerBuilder AdaptiveMode(AdaptiveMode value)
TPickerBuilder
Allows customization of the subtitle's text in the adaptive view of the component.
public TPickerBuilder AdaptiveSubtitle(string value)
The value that configures the adaptivesubtitle.
Returns:TPickerBuilder
Allows customization of the title's text in the adaptive view of the component.
public TPickerBuilder AdaptiveTitle(string value)
The value that configures the adaptivetitle.
Returns:TPickerBuilder
Configures the animation effects of the widget.
public TPickerBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action which configures the animation effects.
Returns:TPickerBuilder
Use to enable or disable animation of the popup element.
public TPickerBuilder Animation(bool enable)
The boolean value.
Returns:TPickerBuilder
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 TPickerBuilder AutoAdjust(bool value)
The value that configures the autoadjust.
Returns:TPickerBuilder
Sets a value that indicates whether to automatically correct the segment when out of range. In order to work, dateInput prop should be set to true.
public TPickerBuilder AutoCorrectParts(bool value)
The value for AutoCorrectParts
Returns:TPickerBuilder
Specifies the culture info used by the widget.
Specifies if the picker will use DateInput for editing value
public TPickerBuilder DateInput()
TPickerBuilder
Specifies if the picker will use DateInput for editing value
public TPickerBuilder DateInput(bool value)
The value for DateInput
Returns:TPickerBuilder
Enables or disables the picker.
Configures the client-side events.
public TPickerBuilder Events(Action<DatePickerEventBuilderBase> clientEventsAction)
The client events action.
Returns:TPickerBuilder
Sets the date format, which will be used to parse and format the machine date. Defaults to CultureInfo.DateTimeFormat.ShortDatePattern.
Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public TPickerBuilder Label(Action<LabelSettingsBuilder> configurator)
TPickerBuilder
Sets the maximal date, which can be selected in picker.
Allows localization of the strings that are used in the widget.
public TPickerBuilder Messages(Action<DatePickerBaseMessagesSettingsBuilder> configurator)
The configurator for the messages setting.
Returns:TPickerBuilder
Sets the minimal date, which can be selected in picker.
Specifies the formats, which are used to parse the value set with value() method or by direct input.
public TPickerBuilder ParseFormats(IEnumerable<string> formats)
TPickerBuilder
Configures the popup settings of the widget.
public TPickerBuilder Popup(Action<PopupSettingsBuilder> popupAction)
TPickerBuilder
Sets the value of the picker input
Sets the value of the picker input