November Happy Hour will be moved to Thursday December 5th.

Class ComboBox

Inheritance
System.Object
ComboBox
Implements
System.Web.UI.IScriptControl
System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer
Namespace: AjaxControlToolkit
Assembly: AjaxControlToolkit.dll
Version: 13.30.0
Syntax
[RequiredScript(typeof(ScriptControlBase), 2)]
[RequiredScript(typeof(PopupExtender), 3)]
[ClientCssResource("AjaxControlToolkit.ComboBox.ComboBox.css", LoadOrder = 1)]
[ClientScriptResource("AjaxControlToolkit.ComboBox", "AjaxControlToolkit.ComboBox.ComboBox.js")]
[RequiredScript(typeof(CommonToolkitScripts), 4)]
public class ComboBox : ListControl, IScriptControl, IPostBackDataHandler, INamingContainer, IControlResolver

Constructors

ComboBox()

Declaration
public ComboBox()

Properties

AutoCompleteMode

Declaration
public virtual ComboBoxAutoCompleteMode AutoCompleteMode { get; set; }
Property Value
Type Description
ComboBoxAutoCompleteMode

AutoPostBack

Declaration
[ExtenderControlProperty]
[ClientPropertyName("autoPostBack")]
public override bool AutoPostBack { get; set; }
Property Value
Type Description
System.Boolean

BackColor

Declaration
public override Color BackColor { get; set; }
Property Value
Type Description
System.Drawing.Color

BorderColor

Declaration
public override Color BorderColor { get; set; }
Property Value
Type Description
System.Drawing.Color

BorderStyle

Declaration
public override BorderStyle BorderStyle { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.BorderStyle

BorderWidth

Declaration
public override Unit BorderWidth { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

ButtonControl

Declaration
protected virtual ComboBoxButton ButtonControl { get; }
Property Value
Type Description
ComboBoxButton

CaseSensitive

Declaration
[ExtenderControlProperty]
[ClientPropertyName("caseSensitive")]
public virtual bool CaseSensitive { get; set; }
Property Value
Type Description
System.Boolean

ClientControlType

Declaration
protected virtual string ClientControlType { get; }
Property Value
Type Description
System.String

ComboTable

Declaration
protected virtual Table ComboTable { get; }
Property Value
Type Description
System.Web.UI.WebControls.Table

ComboTableButtonCell

Declaration
protected virtual TableCell ComboTableButtonCell { get; }
Property Value
Type Description
System.Web.UI.WebControls.TableCell

ComboTableRow

Declaration
protected virtual TableRow ComboTableRow { get; }
Property Value
Type Description
System.Web.UI.WebControls.TableRow

ComboTableTextBoxCell

Declaration
protected virtual TableCell ComboTableTextBoxCell { get; }
Property Value
Type Description
System.Web.UI.WebControls.TableCell

DropDownStyle

Declaration
public virtual ComboBoxStyle DropDownStyle { get; set; }
Property Value
Type Description
ComboBoxStyle

Enabled

Declaration
public override bool Enabled { get; set; }
Property Value
Type Description
System.Boolean

Font

Declaration
public override FontInfo Font { get; }
Property Value
Type Description
System.Web.UI.WebControls.FontInfo

ForeColor

Declaration
public override Color ForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color

Height

Declaration
public override Unit Height { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

HiddenFieldControl

Declaration
protected virtual HiddenField HiddenFieldControl { get; }
Property Value
Type Description
System.Web.UI.WebControls.HiddenField

ItemInsertLocation

Declaration
public virtual ComboBoxItemInsertLocation ItemInsertLocation { get; set; }
Property Value
Type Description
ComboBoxItemInsertLocation

ListItemHoverCssClass

Declaration
[ExtenderControlProperty]
[ClientPropertyName("listItemHoverCssClass")]
public virtual string ListItemHoverCssClass { get; set; }
Property Value
Type Description
System.String

MaxLength

Declaration
public virtual int MaxLength { get; set; }
Property Value
Type Description
System.Int32

OptionListControl

Declaration
protected virtual BulletedList OptionListControl { get; }
Property Value
Type Description
System.Web.UI.WebControls.BulletedList

RenderMode

Declaration
public ComboBoxRenderMode RenderMode { get; set; }
Property Value
Type Description
ComboBoxRenderMode

ScriptManager

Declaration
protected virtual ScriptManager ScriptManager { get; set; }
Property Value
Type Description
System.Web.UI.ScriptManager

SelectedIndex

Declaration
[ClientPropertyName("selectedIndex")]
[ExtenderControlProperty]
public override int SelectedIndex { get; set; }
Property Value
Type Description
System.Int32

TabIndex

Declaration
public override short TabIndex { get; set; }
Property Value
Type Description
System.Int16

TagKey

Declaration
protected override HtmlTextWriterTag TagKey { get; }
Property Value
Type Description
System.Web.UI.HtmlTextWriterTag

TextBoxControl

Declaration
protected virtual TextBox TextBoxControl { get; }
Property Value
Type Description
System.Web.UI.WebControls.TextBox

Width

Declaration
public override Unit Width { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

Methods

AddAttributesToRender(HtmlTextWriter)

Declaration
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

AddButtonAttributesToRender(HtmlTextWriter)

Declaration
protected virtual void AddButtonAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

AddContainerAttributesToRender(HtmlTextWriter)

Declaration
protected virtual void AddContainerAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

AddOptionListAttributesToRender(HtmlTextWriter)

Declaration
protected virtual void AddOptionListAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

AddTableAttributesToRender(HtmlTextWriter)

Declaration
protected virtual void AddTableAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

AddTextBoxAttributesToRender(HtmlTextWriter)

Declaration
protected virtual void AddTextBoxAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

CreateChildControls()

Declaration
protected override void CreateChildControls()

GetScriptDescriptors()

Declaration
protected virtual IEnumerable<ScriptDescriptor> GetScriptDescriptors()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor>

GetScriptReferences()

Declaration
protected virtual IEnumerable<ScriptReference> GetScriptReferences()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptReference>

InsertItem(ComboBoxItemInsertEventArgs)

Declaration
protected virtual void InsertItem(ComboBoxItemInsertEventArgs e)
Parameters
Type Name Description
ComboBoxItemInsertEventArgs e

LoadPostData(String, NameValueCollection)

Declaration
protected virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters
Type Name Description
System.String postDataKey
System.Collections.Specialized.NameValueCollection postCollection
Returns
Type Description
System.Boolean

OnItemInserted(ComboBoxItemInsertEventArgs)

Declaration
protected virtual void OnItemInserted(ComboBoxItemInsertEventArgs e)
Parameters
Type Name Description
ComboBoxItemInsertEventArgs e

OnItemInserting(ComboBoxItemInsertEventArgs)

Declaration
protected virtual void OnItemInserting(ComboBoxItemInsertEventArgs e)
Parameters
Type Name Description
ComboBoxItemInsertEventArgs e

OnLoad(EventArgs)

Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnPreRender(EventArgs)

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

RaisePostDataChangedEvent()

Declaration
public virtual void RaisePostDataChangedEvent()

Render(HtmlTextWriter)

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderContents(HtmlTextWriter)

Declaration
protected override void RenderContents(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderControl(HtmlTextWriter)

Declaration
public override void RenderControl(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

ResolveControl(String)

Declaration
public Control ResolveControl(string controlId)
Parameters
Type Name Description
System.String controlId
Returns
Type Description
System.Web.UI.Control

Events

ItemInserted

Declaration
public event EventHandler<ComboBoxItemInsertEventArgs> ItemInserted
Event Type
Type Description
System.EventHandler<ComboBoxItemInsertEventArgs>

ItemInserting

Declaration
public event EventHandler<ComboBoxItemInsertEventArgs> ItemInserting
Event Type
Type Description
System.EventHandler<ComboBoxItemInsertEventArgs>

Implements

System.Web.UI.IScriptControl
System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer