Table of Contents

Class BaseComboBox

Namespace
InSite.Common.Web.UI
Assembly
InSite.UI.dll
public abstract class BaseComboBox : BaseControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IPostBackDataHandler, IHasEmptyMessage
Inheritance
BaseComboBox
Implements
Derived
Inherited Members

Constructors

BaseComboBox()

public BaseComboBox()

Fields

DefaultSearchEmptyFormat

public const string DefaultSearchEmptyFormat = "No results matched {0}"

Field Value

string

Properties

AutoPostBack

public bool AutoPostBack { get; set; }

Property Value

bool

ButtonSize

public ButtonSize ButtonSize { get; set; }

Property Value

ButtonSize

ButtonStyle

public ButtonStyle ButtonStyle { get; set; }

Property Value

ButtonStyle

CausesValidation

public bool CausesValidation { get; set; }

Property Value

bool

ClientEvents

[PersistenceMode(PersistenceMode.InnerProperty)]
public ComboBoxClientEvents ClientEvents { get; }

Property Value

ComboBoxClientEvents

ControlBinding

protected virtual BaseComboBox.BindingType ControlBinding { get; }

Property Value

BaseComboBox.BindingType

ControlCssClass

protected virtual string ControlCssClass { get; }

Property Value

string

DropDown

[PersistenceMode(PersistenceMode.InnerProperty)]
public ComboBoxDropDown DropDown { get; }

Property Value

ComboBoxDropDown

EmptyMessage

public string EmptyMessage { get; set; }

Property Value

string

EnableSearch

public bool EnableSearch { get; set; }

Property Value

bool

EnableTranslation

public bool EnableTranslation { get; set; }

Property Value

bool

Enabled

public bool Enabled { get; set; }

Property Value

bool

HasValue

public abstract bool HasValue { get; }

Property Value

bool

IsBindingDone

protected bool IsBindingDone { get; set; }

Property Value

bool

Items

[PersistenceMode(PersistenceMode.InnerProperty)]
public ComboBoxItemCollection<ComboBoxItem> Items { get; }

Property Value

ComboBoxItemCollection<ComboBoxItem>

SearchEmptyMessage

public string SearchEmptyMessage { get; set; }

Property Value

string

ShowOptionHtml

public bool ShowOptionHtml { get; set; }

Property Value

bool

Translate

protected Func<string, string> Translate { get; }

Property Value

Func<string, string>

ValidationGroup

public string ValidationGroup { get; set; }

Property Value

string

Width

public Unit Width { get; set; }

Property Value

Unit

Methods

AddAttributesToRender(HtmlTextWriter)

protected override void AddAttributesToRender(HtmlTextWriter writer)

Parameters

writer HtmlTextWriter

ClearSelection()

public virtual void ClearSelection()

CreateClientSideSettings(string)

protected virtual BaseComboBox.ClientSideSettings CreateClientSideSettings(string clientId)

Parameters

clientId string

Returns

BaseComboBox.ClientSideSettings

CreateDataSource()

protected virtual ListItemArray CreateDataSource()

Returns

ListItemArray

EnsureDataBound()

public void EnsureDataBound()

GetStyle()

protected string GetStyle()

Returns

string

LoadItem(ListItem)

protected virtual ComboBoxItem LoadItem(ListItem item)

Parameters

item ListItem

Returns

ComboBoxItem

LoadItem(string, string)

protected virtual ComboBoxItem LoadItem(string text, string value)

Parameters

text string
value string

Returns

ComboBoxItem

LoadItems(IEnumerable<ListItem>)

public virtual void LoadItems(IEnumerable<ListItem> data)

Parameters

data IEnumerable<ListItem>

LoadItems(IEnumerable<string>)

public virtual void LoadItems(IEnumerable<string> textValueData)

Parameters

textValueData IEnumerable<string>

LoadItems<T>(params T[])

public virtual void LoadItems<T>(params T[] items) where T : Enum

Parameters

items T[]

Type Parameters

T

LoadPostData(string)

protected abstract bool LoadPostData(string value)

Parameters

value string

Returns

bool

LoadViewState(object)

protected override void LoadViewState(object savedState)

Parameters

savedState object

OnAttributeSet(AttributeEventArgs)

protected override void OnAttributeSet(AttributeEventArgs e)

Parameters

e AttributeEventArgs

OnInit(EventArgs)

protected override void OnInit(EventArgs e)

Parameters

e EventArgs

OnItemAssigned(ComboBoxItem)

protected abstract void OnItemAssigned(ComboBoxItem item)

Parameters

item ComboBoxItem

OnItemSelected(ComboBoxItem)

protected abstract void OnItemSelected(ComboBoxItem item)

Parameters

item ComboBoxItem

OnLoad(EventArgs)

protected override void OnLoad(EventArgs e)

Parameters

e EventArgs

OnPostLoadItems()

protected virtual void OnPostLoadItems()

OnPreLoadItems()

protected virtual void OnPreLoadItems()

OnPreRender(EventArgs)

protected override void OnPreRender(EventArgs e)

Parameters

e EventArgs

RaisePostDataChangedEvent()

protected abstract void RaisePostDataChangedEvent()

RefreshData()

public void RefreshData()

Render(HtmlTextWriter)

protected override void Render(HtmlTextWriter writer)

Parameters

writer HtmlTextWriter

SaveViewState()

protected override object SaveViewState()

Returns

object

SetupClientSideSettings(ClientSideSettings)

protected virtual void SetupClientSideSettings(BaseComboBox.ClientSideSettings settings)

Parameters

settings BaseComboBox.ClientSideSettings

TrackViewState()

protected override void TrackViewState()

TranslateItem(ComboBoxItem)

protected virtual void TranslateItem(ComboBoxItem item)

Parameters

item ComboBoxItem