Class DatePicker
Input field that display the DatePicker calendar as popup to select and set the date value
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 DatePicker : Control, IHtmlString
Constructors
DatePicker()
Initializes a new instance of the DatePicker class.
Declaration
public DatePicker()
DatePicker(String, DatePickerProperties)
Initializes a new instance of the DatePicker class by the specified id and the date picker properties.
Declaration
public DatePicker(string id, DatePickerProperties propModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
DatePickerProperties | propModel |
Properties
DatePickerModel
Gets or sets the date picker model object of the date picker properties.
Declaration
public DatePickerProperties DatePickerModel { get; set; }
Property Value
Type | Description |
---|---|
DatePickerProperties |
Model
Instance of the control properties class
Declaration
protected override object Model { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
PluginName
Gets the plugin name of the date picker element as 'ejDatePicker'.
Declaration
public override string PluginName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
TagName
Gets the tag name of the date picker 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 date picker 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
CreateUnObtrusiveContainer(String)
Represents an HTML-encoded string of the date picker control with directives.
Declaration
public override HtmlString CreateUnObtrusiveContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
RenderControl(String)
Represents an HTML element of the date picker control.
Declaration
public override void RenderControl(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Overrides
Implements
System.Web.IHtmlString