New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The control that toggles the calendar popup. You can customize the appearance by setting the object's properties.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class CalendarPopupButton : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, ICustomTypeDescriptor

Inheritance: objectControlWebControlCalendarPopupButton

Derived Classes: MonthYearPopupButtonTimePopupButton

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorICustomTypeDescriptorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIUrlResolutionService...

Inherited Members WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AttributesWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.DisabledCssClassWebControl.StyleWebControl.HasAttributesWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.TagNameControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IsChildControlStateClearedControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
protected CalendarPopupButton()
C#
public CalendarPopupButton(RadDatePicker owner)
Parameters:ownerRadDatePicker

Fields

C#
protected RadMonthYearPicker monthYearOwner
C#
protected RadDatePicker owner

Properties

Gets or sets the access key that allows you to quickly navigate to the Web server control.

C#
public override string AccessKey { get; set; }
Property Value:

The access key for quick navigation to the Web server control. The default value is Empty, which indicates that this property is not set.

Exceptions: ArgumentOutOfRangeException

The specified access key is neither null, Empty nor a single character string.

Overrides: WebControl.AccessKey

Gets or sets the background color of the Web server control.

C#
public override Color BackColor { get; set; }
Property Value:

A Color that represents the background color of the control. The default is Empty, which indicates that this property is not set.

Overrides: WebControl.BackColor

Gets or sets the border color of the Web control.

C#
public override Color BorderColor { get; set; }
Property Value:

A Color that represents the border color of the control. The default is Empty, which indicates that this property is not set.

Overrides: WebControl.BorderColor

Gets or sets the border style of the Web server control.

C#
public override BorderStyle BorderStyle { get; set; }
Property Value:

One of the BorderStyle enumeration values. The default is NotSet.

Overrides: WebControl.BorderStyle

Gets or sets the border width of the Web server control.

C#
public override Unit BorderWidth { get; set; }
Property Value:

A Unit that represents the border width of a Web server control. The default value is Empty, which indicates that this property is not set.

Exceptions: ArgumentException

The specified border width is a negative value.

Overrides: WebControl.BorderWidth

Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.

C#
public override string CssClass { get; set; }
Property Value:

The CSS class rendered by the Web server control on the client. The default is Empty.

Overrides: WebControl.CssClass

Gets or sets a value indicating whether the Web server control is enabled.

C#
public override bool Enabled { get; set; }
Property Value:

true if control is enabled; otherwise, false. The default is true.

Overrides: WebControl.Enabled

Gets or sets a value indicating whether themes apply to this control.

C#
public override bool EnableTheming { get; set; }
Property Value:

true to use themes; otherwise, false. The default is true.

Exceptions: InvalidOperationException

The Page_PreInit event has already occurred.- or -The control has already been added to the Controls collection.

Overrides: WebControl.EnableTheming

Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.

C#
public override bool EnableViewState { get; set; }
Property Value:

true if the server control maintains its view state; otherwise false. The default is true.

Overrides: Control.EnableViewState

Gets the font properties associated with the Web server control.

C#
public override FontInfo Font { get; }
Property Value:

A FontInfo that represents the font properties of the Web server control.

Overrides: WebControl.Font

Gets or sets the foreground color (typically the color of the text) of the Web server control.

C#
public override Color ForeColor { get; set; }
Property Value:

A Color that represents the foreground color of the control. The default is Empty.

Overrides: WebControl.ForeColor

Gets or sets the height of the Web server control.

C#
public override Unit Height { get; set; }
Property Value:

A Unit that represents the height of the control. The default is Empty.

Exceptions: ArgumentException

The height was set to a negative value.

Overrides: WebControl.Height

Gets or sets the popup button hover image URL.

C#
public virtual string HoverImageUrl { get; set; }

Gets or sets the programmatic identifier assigned to the server control.

C#
[Browsable(false)]
public override string ID { get; set; }
Property Value:

The programmatic identifier assigned to the control.

Overrides: Control.ID

Gets or sets the popup button image URL.

C#
public virtual string ImageUrl { get; set; }
C#
protected Image PopupImage { get; }

Gets or sets the skin to apply to the control.

C#
public override string SkinID { get; set; }
Property Value:

The name of the skin to apply to the control. The default is Empty.

Exceptions: ArgumentException

The skin specified in the SkinID property does not exist in the theme.

Overrides: WebControl.SkinID

Gets or sets the tab index of the Web server control.

C#
public override short TabIndex { get; set; }
Property Value:

The tab index of the Web server control. The default is 0, which indicates that this property is not set.

Exceptions: ArgumentOutOfRangeException

The specified tab index is not between -32768 and 32767.

Overrides: WebControl.TabIndex

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the text displayed when the mouse pointer hovers over the Web server control.

C#
public override string ToolTip { get; set; }
Property Value:

The text displayed when the mouse pointer hovers over the Web server control. The default is Empty.

Overrides: WebControl.ToolTip

Gets or sets a value that indicates whether a server control is rendered as UI on the page.

C#
public override bool Visible { get; set; }
Property Value:

true if the control is visible on the page; otherwise false.

Overrides: Control.Visible

Gets or sets the width of the Web server control.

C#
public override Unit Width { get; set; }
Property Value:

A Unit that represents the width of the control. The default is Empty.

Exceptions: ArgumentException

The width of the Web server control was set to a negative value.

Overrides: WebControl.Width

Methods

C#
protected virtual void AddAriaAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter
C#
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.AddAttributesToRender(HtmlTextWriter)

C#
protected override void CreateChildControls()

Overrides: Control.CreateChildControls()

Returns a collection of custom attributes for this instance of a component.

C#
public AttributeCollection GetAttributes()
Returns:

AttributeCollection

An AttributeCollection containing the attributes for this object.

Implements: ICustomTypeDescriptor.GetAttributes()

Returns the class name of this instance of a component.

C#
public string GetClassName()
Returns:

string

The class name of the object, or null if the class does not have a name.

Implements: ICustomTypeDescriptor.GetClassName()

Returns the name of this instance of a component.

C#
public string GetComponentName()
Returns:

string

The name of the object, or null if the object does not have a name.

Implements: ICustomTypeDescriptor.GetComponentName()

Returns a type converter for this instance of a component.

C#
public TypeConverter GetConverter()
Returns:

TypeConverter

A TypeConverter that is the converter for this object, or null if there is no TypeConverter for this object.

Implements: ICustomTypeDescriptor.GetConverter()

Returns the default event for this instance of a component.

C#
public EventDescriptor GetDefaultEvent()
Returns:

EventDescriptor

An EventDescriptor that represents the default event for this object, or null if this object does not have events.

Implements: ICustomTypeDescriptor.GetDefaultEvent()

Returns the default property for this instance of a component.

C#
public PropertyDescriptor GetDefaultProperty()
Returns:

PropertyDescriptor

A PropertyDescriptor that represents the default property for this object, or null if this object does not have properties.

Implements: ICustomTypeDescriptor.GetDefaultProperty()

Returns an editor of the specified type for this instance of a component.

C#
public object GetEditor(Type editorBaseType)
Parameters:editorBaseTypeType

A Type that represents the editor for this object.

Returns:

object

An object of the specified type that is the editor for this object, or null if the editor cannot be found.

Implements: ICustomTypeDescriptor.GetEditor(Type)

Returns the events for this instance of a component.

C#
public EventDescriptorCollection GetEvents()
Returns:

EventDescriptorCollection

An EventDescriptorCollection that represents the events for this component instance.

Implements: ICustomTypeDescriptor.GetEvents()

Returns the events for this instance of a component using the specified attribute array as a filter.

C#
public EventDescriptorCollection GetEvents(Attribute[] attributes)
Parameters:attributesAttribute[]

An array of type Attribute that is used as a filter.

Returns:

EventDescriptorCollection

An EventDescriptorCollection that represents the filtered events for this component instance.

Implements: ICustomTypeDescriptor.GetEvents(Attribute[])

C#
protected virtual string GetImage(string imageName)
Parameters:imageNamestringReturns:

string

Returns the properties for this instance of a component.

C#
public PropertyDescriptorCollection GetProperties()
Returns:

PropertyDescriptorCollection

A PropertyDescriptorCollection that represents the properties for this component instance.

Implements: ICustomTypeDescriptor.GetProperties()

Returns the properties for this instance of a component using the attribute array as a filter.

C#
public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
Parameters:attributesAttribute[]

An array of type Attribute that is used as a filter.

Returns:

PropertyDescriptorCollection

A PropertyDescriptorCollection that represents the filtered properties for this component instance.

Implements: ICustomTypeDescriptor.GetProperties(Attribute[])

Returns an object that contains the property described by the specified property descriptor.

C#
public object GetPropertyOwner(PropertyDescriptor pd)
Parameters:pdPropertyDescriptor

A PropertyDescriptor that represents the property whose owner is to be found.

Returns:

object

An object that represents the owner of the specified property.

Implements: ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

C#
protected override void Render(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.Render(HtmlTextWriter)

C#
protected virtual bool ShouldRenderPopupImages()
Returns:

bool

C#
protected virtual bool ShouldSerializeHoverImageUrl()
Returns:

bool

C#
protected virtual bool ShouldSerializeImageUrl()
Returns:

bool

C#
protected virtual void UpdateHoverImage()