Class DateTimePickerPropertiesBuilder
Inheritance
System.Object
DateTimePickerPropertiesBuilder
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class DateTimePickerPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
DateTimePickerPropertiesBuilder()
Declaration
public DateTimePickerPropertiesBuilder()
DateTimePickerPropertiesBuilder(DateTimePicker)
Declaration
public DateTimePickerPropertiesBuilder(DateTimePicker dateTimePicker)
Parameters
Fields
dateTimePicker
Declaration
public DateTimePicker dateTimePicker
Field Value
Methods
AllowEdit()
Specifies to edit the date values in the input field of the date time picker.
Declaration
public DateTimePickerPropertiesBuilder AllowEdit()
Returns
AllowEdit(Boolean)
Specifies to edit the date values in the input field of the date time picker based on the boolean argument specified.
Declaration
public DateTimePickerPropertiesBuilder AllowEdit(bool allowEdit)
Parameters
Type |
Name |
Description |
System.Boolean |
allowEdit |
|
Returns
ClientSideEvents(Action<DateTimePickerClientSideEventsBuilder>)
Specifies to trigger the DateTimePicker client side events.
Declaration
public DateTimePickerPropertiesBuilder ClientSideEvents(Action<DateTimePickerClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
CssClass(String)
Specifies the root CSS class to DateTimePicker for theme customization.
Declaration
public DateTimePickerPropertiesBuilder CssClass(string customCssClass)
Parameters
Type |
Name |
Description |
System.String |
customCssClass |
|
Returns
Specifies the date and time format displayed in the DateTimePicker.
Declaration
public DateTimePickerPropertiesBuilder DateTimeFormat(string dateTimeFormat)
Parameters
Type |
Name |
Description |
System.String |
dateTimeFormat |
|
Returns
DateTimePickerButtonText(Action<ButtonTextBuilder>)
Specifies the custom text for the buttons inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder DateTimePickerButtonText(Action<ButtonTextBuilder> buttonText)
Parameters
Returns
DateTimePickerDrillDown(Action<TimeDrillDownBuilder>)
Specifies drilldown to multiple levels of view (hours/minutes/seconds) in DateTimepicker popup.
Declaration
public DateTimePickerPropertiesBuilder DateTimePickerDrillDown(Action<TimeDrillDownBuilder> timeDrillDown)
Parameters
Returns
Specifies the header format of the date picker inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder DayHeaderFormat(Header dayHeaderFormat)
Parameters
Type |
Name |
Description |
Header |
dayHeaderFormat |
|
Returns
DepthLevel(Period)
Specifies the drill down level in date picker inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder DepthLevel(Period depthLevel)
Parameters
Type |
Name |
Description |
Period |
depthLevel |
|
Returns
Enabled()
Specifies the DateTimePicker control respond for user interaction.
Declaration
public DateTimePickerPropertiesBuilder Enabled()
Returns
Enabled(Boolean)
Allows the DateTimePicker control respond for user interaction with the specified boolean argument.
Declaration
public DateTimePickerPropertiesBuilder Enabled(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Returns
EnablePersistence()
Specifies to persists the DateTimePicker model value upon form post or browser refresh.
Declaration
public DateTimePickerPropertiesBuilder EnablePersistence()
Returns
EnablePersistence(Boolean)
Specifies to persists the DateTimePicker model value upon form post or browser refresh with the specified boolean argument.
Declaration
public DateTimePickerPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableRTL()
Specifies the DateTimePicker input field and popup with rounded corners by the specified boolean argument.
Declaration
public DateTimePickerPropertiesBuilder EnableRTL()
Returns
EnableRTL(Boolean)
Specifies to align the input field and popup in right to left direction.
Declaration
public DateTimePickerPropertiesBuilder EnableRTL(bool enableRTL)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRTL |
|
Returns
EnableStrictMode(Boolean)
Specifies to allow the invalid date in the DateTimePicker input field.
Declaration
public DateTimePickerPropertiesBuilder EnableStrictMode(bool enableStrictMode)
Parameters
Type |
Name |
Description |
System.Boolean |
enableStrictMode |
|
Returns
Specifies the header format to be displayed in the date picker calendar inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder HeaderFormat(string headerFormat)
Parameters
Type |
Name |
Description |
System.String |
headerFormat |
|
Returns
Height(String)
Sets the height of the DateTimePicker input field.
Declaration
public DateTimePickerPropertiesBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
HtmlAttributes(IDictionary<String, Object>)
Specifies to map the field of HTML attributes for the DateTimePicker element.
Declaration
public DateTimePickerPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
itemHtmlAttributes |
|
Returns
Interval(Int32)
Specifies the time interval between the two adjacent time values in the time popup.
Declaration
public DateTimePickerPropertiesBuilder Interval(int interval)
Parameters
Type |
Name |
Description |
System.Int32 |
interval |
|
Returns
Locale(String)
Specifies to display the DateTimePicker in the specified culture.
Declaration
public DateTimePickerPropertiesBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
MaxDateTime(DateTime)
Specifies the maximum date and time value of the DateTimePicker with the DateTime argument.
Declaration
public DateTimePickerPropertiesBuilder MaxDateTime(DateTime maxDateTime)
Parameters
Type |
Name |
Description |
System.DateTime |
maxDateTime |
|
Returns
MaxDateTime(String)
Specifies the maximum date and time value of the DateTimePicker with the string argument.
Declaration
public DateTimePickerPropertiesBuilder MaxDateTime(string maxDateTime)
Parameters
Type |
Name |
Description |
System.String |
maxDateTime |
|
Returns
MinDateTime(DateTime)
Declaration
public DateTimePickerPropertiesBuilder MinDateTime(DateTime minDateTime)
Parameters
Type |
Name |
Description |
System.DateTime |
minDateTime |
|
Returns
MinDateTime(String)
Specifies the minimum date and time value of the DateTimePicker with the string argument.
Declaration
public DateTimePickerPropertiesBuilder MinDateTime(string minDateTime)
Parameters
Type |
Name |
Description |
System.String |
minDateTime |
|
Returns
Name(String)
Specifies the name of the DateTimePicker.
Declaration
public DateTimePickerPropertiesBuilder Name(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
ReadOnly()
Specifies to prevent the editing/selecting the date/time in DateTimePicker.
Declaration
public DateTimePickerPropertiesBuilder ReadOnly()
Returns
ReadOnly(Boolean)
Specifies to prevent the editing/selecting the date/time in DateTimePicker with the specified boolean argument.
Declaration
public DateTimePickerPropertiesBuilder ReadOnly(bool readOnly)
Parameters
Type |
Name |
Description |
System.Boolean |
readOnly |
|
Returns
Render()
Renders the DateTimePicker instance.
Declaration
ShowOtherMonths()
Specifies to show the days of adjacent months in current month calendar of DateTimePicker.
Declaration
public DateTimePickerPropertiesBuilder ShowOtherMonths()
Returns
ShowOtherMonths(Boolean)
Specifies to show the days of adjacent months in current month calendar of DateTimePicker by the specified boolean argument.
Declaration
public DateTimePickerPropertiesBuilder ShowOtherMonths(bool showOtherMonths)
Parameters
Type |
Name |
Description |
System.Boolean |
showOtherMonths |
|
Returns
Shows the DateTime icon button in the input field.
Declaration
public DateTimePickerPropertiesBuilder ShowPopupButton()
Returns
Shows the DateTime icon button in the input field with the specified boolean argument.
Declaration
public DateTimePickerPropertiesBuilder ShowPopupButton(bool showPopupButton)
Parameters
Type |
Name |
Description |
System.Boolean |
showPopupButton |
|
Returns
ShowRoundedCorner()
Changes the sharped edges into rounded corner for the DateTimePicker textbox and popup.
Declaration
public DateTimePickerPropertiesBuilder ShowRoundedCorner()
Returns
ShowRoundedCorner(Boolean)
Specifies the DateTimePicker input field and popup with rounded corners.
Declaration
public DateTimePickerPropertiesBuilder ShowRoundedCorner(bool showRoundedCorner)
Parameters
Type |
Name |
Description |
System.Boolean |
showRoundedCorner |
|
Returns
StartDay(Int32)
Specifies the calendar's start day of the week in the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder StartDay(int startDay)
Parameters
Type |
Name |
Description |
System.Int32 |
startDay |
|
Returns
StartLevel(Period)
Specifies the start level view in date picker inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder StartLevel(Period startLevel)
Parameters
Type |
Name |
Description |
Period |
startLevel |
|
Returns
StepMonths(Int32)
Specifies the number of months to navigate at one click of next and previous button in date picker inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder StepMonths(int stepMonths)
Parameters
Type |
Name |
Description |
System.Int32 |
stepMonths |
|
Returns
Specifies the time format displayed in the time dropdown inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder TimeDisplayFormat(string timeDisplayFormat)
Parameters
Type |
Name |
Description |
System.String |
timeDisplayFormat |
|
Returns
Specifies the width of the time dropdown inside the DateTimePicker popup.
Declaration
public DateTimePickerPropertiesBuilder TimePopupWidth(int timePopupWidth)
Parameters
Type |
Name |
Description |
System.Int32 |
timePopupWidth |
|
Returns
TimeZone()
Allows to set the value of the DateTimePicker based on the timezone.
Declaration
public DateTimePickerPropertiesBuilder TimeZone()
Returns
TimeZone(Boolean)
Allows to set the value in dateTimepicker based on the timezone.
Declaration
public DateTimePickerPropertiesBuilder TimeZone(bool timeZone)
Parameters
Type |
Name |
Description |
System.Boolean |
timeZone |
|
Returns
ToHtmlString()
Represents an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
ValidationMessage(Action<DateTimePickerPropertiesBuilder.DateTimePickerValidationMessageBuilder>)
Sets the jQuery validation error message in DateTimePicker input. This API is deprecated, please use ValidationMessages instead of this.
Declaration
[Obsolete("The ValidationMessage property has been deprecated.Use 'ValidationMessages' instead")]
public DateTimePickerPropertiesBuilder ValidationMessage(Action<DateTimePickerPropertiesBuilder.DateTimePickerValidationMessageBuilder> validationMessages)
Parameters
Returns
ValidationMessage(Dictionary<String, Object>)
Sets the jQuery validation error message in DateTimePicker input. This API is deprecated, please use ValidationMessages instead of this.
Declaration
[Obsolete("The ValidationMessage property has been deprecated.Use 'ValidationMessages' instead")]
public DateTimePickerPropertiesBuilder ValidationMessage(Dictionary<string, object> validationMessage)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationMessage |
|
Returns
ValidationMessages(Action<DateTimePickerPropertiesBuilder.DateTimePickerValidationMessageBuilder>)
Declaration
public DateTimePickerPropertiesBuilder ValidationMessages(Action<DateTimePickerPropertiesBuilder.DateTimePickerValidationMessageBuilder> validationMessages)
Parameters
Returns
ValidationMessages(Dictionary<String, Object>)
Sets the jQuery validation error message in DateTimePicker input.
Declaration
public DateTimePickerPropertiesBuilder ValidationMessages(Dictionary<string, object> validationMessage)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationMessage |
|
Returns
ValidationRules(Action<DateTimePickerPropertiesBuilder.DateTimePickerValidationRuleBuilder>)
Sets the jQuery validation rules in DateTimePicker input.
Declaration
public DateTimePickerPropertiesBuilder ValidationRules(Action<DateTimePickerPropertiesBuilder.DateTimePickerValidationRuleBuilder> validationRule)
Parameters
Returns
ValidationRules(Dictionary<String, Object>)
Sets the jQuery validation rules in DateTimePicker input.
Declaration
public DateTimePickerPropertiesBuilder ValidationRules(Dictionary<string, object> validationRule)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationRule |
|
Returns
Value(DateTime)
Specifies the DateTime value of the DateTimePicker with the specified DateTime argument.
Declaration
public DateTimePickerPropertiesBuilder Value(DateTime value)
Parameters
Type |
Name |
Description |
System.DateTime |
value |
|
Returns
Value(String)
Specifies the DateTime value of the DateTimePicker with the specified string argument.
Declaration
public DateTimePickerPropertiesBuilder Value(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
WatermarkText(String)
Specifies the place holder value for DateTimePicker input field.
Declaration
public DateTimePickerPropertiesBuilder WatermarkText(string watermarkText)
Parameters
Type |
Name |
Description |
System.String |
watermarkText |
|
Returns
Width(String)
Specifies the width of the DateTimePicker input field.
Declaration
public DateTimePickerPropertiesBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns
Implements
System.Web.IHtmlString