ASP.NET Pack Programmer's Guide
DropDown Members
Constructors Properties Methods Events
 


Represents a customizable drop-down list control.

The following tables list the members exposed by the DropDown type.

 Public Constructors

  Name Description

DropDown

Initializes a new instance of the DropDown class.

 Public Properties

  Name Description

AutoComplete

Gets or sets a value indicating whether automatic completion is enabled for the control.

AutoPostBack

Gets or sets a value indicating whether the control will post back to the server when the selected index has changed.

ClientScriptMode

Gets or sets a value indicating which library will be used in the control's client-side scripts.

ControlLoadedScript

Gets or sets the name of a JavaScript function that should be invoked when the control is loaded.

DataTextField

Gets or sets the field from the data source to bind to the Text property of the control's items.

DataValueField

Gets or sets the field from the data source to bind to the Value property of the control's items.

EmptyText

Gets or sets the text to be displayed when the control's selected item is not set.

FooterTemplate

Gets or sets the template used to display the control's footer.

HeaderTemplate

Gets or sets the template used to display the control's header.

Height

Gets or sets the height of the control.

IsThemed

Gets a value indicating the control has its Theme property set to a specified value.

Items

Gets the collection of items, associated with this control.

ItemTemplate

Gets or sets the template used to display items.

Label

Gets or sets the caption of the control.

LabelPosition

Gets or sets the caption alignment.

LicenseKey

Gets or sets the license key of the control.

SelectedIndex

Gets or sets the index of the currently selected DropDownItem.

SelectedIndexChangedScript

Gets or sets the name of a JavaScript function that should be invoked when the control's selected index changes.

SelectedIndexChangingScript

Gets or sets the name of a JavaScript function that should be invoked when the control's selected index is about to be changed.

SelectedValue

Gets the currently selected value.

SubmitOnEnter

Gets or sets a value indicating whether the control will submit the form on pressing the Enter key.

TextAlignment

Gets or sets the alignment of the text inside the control.

Theme

Gets or sets the theme applied to the control.

Width

Gets or sets the width of the control.

 Protected Properties

  Name Description

TagKey

WebControl.TagKey override.

 Public Methods

  Name Description

LoadFromXml

Overloaded. Loads control data from an XML file or from a System.Xml.XmlDocument.

RaisePostDataChangedEvent

When implemented by a derived class in the server control notifies the ASP.NET application that the state of the control has changed.

SaveToXml

Overloaded. Saves control data to an XML file or to a System.Xml.XmlDocument.

 Protected Methods

  Name Description

CreateChildControls

Control.CreateChildControls override.

LoadViewState

Control.LoadViewState override.

OnBeginLoad

Raises the BeginLoad event.

OnEndLoad

Raises the EndLoad event.

OnPreRender

Control.OnPreRender override.

OnSelectedIndexChanged

Raises the SelectedIndexChanged event.

PerformDataBinding

DataBoundControl.PerformDataBinding override.

PerformSelect

DataBoundControl.PerformSelect override.

Render

Control.Render override.

RenderContents

WebControl.RenderContents override.

SaveViewState

Control.SaveViewState override.

TrackViewState

Control.TrackViewState override.

 Public Events

  Name Description

BeginLoad

Raised when the component starts loading data from a file or memory stream.

EndLoad

Raised when the component ends loading data from a file or memory stream.

SelectedIndexChanged

Raised when the value of the SelectedIndex property has changed.

 See Also

DropDown Class
MindFusion.UI.WebForms Namespace