Class DateTimePicker
The DateTimePicker control is used to input the date and time with a specific format.
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()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class DateTimePicker : Control, IHtmlString
Constructors
DateTimePicker()
Initializes a new instance of the DateTimePicker class.
Declaration
public DateTimePicker()
DateTimePicker(String, DateTimePickerProperties)
Initializes a new instance of the DateTimePicker class by the specified id and the DateTimePicker properties.
Declaration
public DateTimePicker(string id, DateTimePickerProperties propModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
DateTimePickerProperties | propModel |
Properties
DateTimePickerModel
Gets or sets the DateTimePicker model object of the DateTimePicker properties.
Declaration
public DateTimePickerProperties DateTimePickerModel { get; set; }
Property Value
Type | Description |
---|---|
DateTimePickerProperties |
Model
Instance of control properties class
Declaration
protected override object Model { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
PluginName
Gets the plugin name of the DateTimePicker as 'ejDateTimePicker'.
Declaration
public override string PluginName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
TagName
Gets the tag name of the DateTimePicker element as 'input'.
Declaration
public override string TagName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
CreateContainer(String)
Represents an HTML-encoded string of the DateTimePicker control that should not be encoded again.
Declaration
public override HtmlString CreateContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
GetDependentControl()
Declaration
protected override List<string> GetDependentControl()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Overrides
RenderControl(String)
Represents an HTML element of the DateTimePicker control.
Declaration
public override void RenderControl(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Overrides
Implements
System.Web.IHtmlString