Class ComboBox
Inheritance
System.Object
ComboBox
Implements
System.Web.UI.IScriptControl
System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer
Assembly: AjaxControlToolkit.dll
Version: 13.30.0
[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
Declaration
Properties
Declaration
public virtual ComboBoxAutoCompleteMode AutoCompleteMode { get; set; }
Property Value
AutoPostBack
Declaration
[ExtenderControlProperty]
[ClientPropertyName("autoPostBack")]
public override bool AutoPostBack { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override Color BackColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public override Color BorderColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public override BorderStyle BorderStyle { get; set; }
Property Value
Type |
Description |
System.Web.UI.WebControls.BorderStyle |
|
Declaration
public override Unit BorderWidth { get; set; }
Property Value
Type |
Description |
System.Web.UI.WebControls.Unit |
|
Declaration
protected virtual ComboBoxButton ButtonControl { get; }
Property Value
Declaration
[ExtenderControlProperty]
[ClientPropertyName("caseSensitive")]
public virtual bool CaseSensitive { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
protected virtual string ClientControlType { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
protected virtual Table ComboTable { get; }
Property Value
Type |
Description |
System.Web.UI.WebControls.Table |
|
Declaration
protected virtual TableCell ComboTableButtonCell { get; }
Property Value
Type |
Description |
System.Web.UI.WebControls.TableCell |
|
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 |
|
Declaration
public virtual ComboBoxStyle DropDownStyle { get; set; }
Property Value
Declaration
public override bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override FontInfo Font { get; }
Property Value
Type |
Description |
System.Web.UI.WebControls.FontInfo |
|
Declaration
public override Color ForeColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public override Unit Height { get; set; }
Property Value
Type |
Description |
System.Web.UI.WebControls.Unit |
|
Declaration
protected virtual HiddenField HiddenFieldControl { get; }
Property Value
Type |
Description |
System.Web.UI.WebControls.HiddenField |
|
Declaration
public virtual ComboBoxItemInsertLocation ItemInsertLocation { get; set; }
Property Value
Declaration
[ExtenderControlProperty]
[ClientPropertyName("listItemHoverCssClass")]
public virtual string ListItemHoverCssClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual int MaxLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
protected virtual BulletedList OptionListControl { get; }
Property Value
Type |
Description |
System.Web.UI.WebControls.BulletedList |
|
Declaration
public ComboBoxRenderMode RenderMode { get; set; }
Property Value
Declaration
protected virtual ScriptManager ScriptManager { get; set; }
Property Value
Type |
Description |
System.Web.UI.ScriptManager |
|
Declaration
[ClientPropertyName("selectedIndex")]
[ExtenderControlProperty]
public override int SelectedIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public override short TabIndex { get; set; }
Property Value
Type |
Description |
System.Int16 |
|
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 |
|
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 |
|
Declaration
protected override void CreateChildControls()
Declaration
protected virtual IEnumerable<ScriptDescriptor> GetScriptDescriptors()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor> |
|
Declaration
protected virtual IEnumerable<ScriptReference> GetScriptReferences()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptReference> |
|
Declaration
protected virtual void InsertItem(ComboBoxItemInsertEventArgs e)
Parameters
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 |
|
Declaration
protected virtual void OnItemInserted(ComboBoxItemInsertEventArgs e)
Parameters
Declaration
protected virtual void OnItemInserting(ComboBoxItemInsertEventArgs e)
Parameters
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
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 |
|
Declaration
public Control ResolveControl(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Returns
Type |
Description |
System.Web.UI.Control |
|
Events
Declaration
public event EventHandler<ComboBoxItemInsertEventArgs> ItemInserted
Event Type
Declaration
public event EventHandler<ComboBoxItemInsertEventArgs> ItemInserting
Event Type
Implements
System.Web.UI.IScriptControl
System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer