Otter SDK Reference
Version:

SelectList Class

A slightly more canonical select list that uses select2.

Inheritance Hierarchy

Syntax

public class SelectList : Element, System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IUrlResolutionService, System.Web.UI.IDataBindingsAccessor, System.Web.UI.IControlBuilderAccessor, System.Web.UI.IControlDesignerAccessor, System.Web.UI.IExpressionsAccessor, System.Web.UI.IAttributeAccessor, IMandatoryClientIdPolicyContainer, ISimpleControl, ISimpleControlContainer, ISimpleClientResourceConsumer, System.Web.UI.IPostBackDataHandler, System.Web.UI.ITextControl, ISimplePostControl

Constructors

Name Description
SelectList

Initializes a new instance of the SelectList class.

SelectList(System.Collections.Generic.IEnumerable<SelectListItem> items)
SelectList(SelectListItem[] items)

Initializes a new instance of the SelectList class.

Events

Name Description
SelectedValueChanged

Occurs when the selected value changes after a postback

Properties

Name Description
AutoPostBack

Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.

Items

Gets the items in the list.

SelectedValue

Gets or sets the selected value.