ASP.NET Interface Controls - OboutDropDownList - Client-Side API

<%@ Register TagPrefix="obout" Namespace="Obout.Interface" Assembly="obout_Interface" %>

Client-Side Methods

Name Description
propertyvalue Gets or sets the selected value.

var val = ddl1.value(); ddl1.value(newValue);
propertyselectedIndex Gets or sets the selected index.

var index = ddl1.selectedIndex(); ddl1.selectedIndex(newIndex);
propertyfocus Moves the focus to the drop down list.

ddl1.focus();
propertyenable Enables the drop down list.

ddl1.enable();
propertydisable Disables the drop down list.

ddl1.disable();
propertyopen Opens the drop down list.

ddl1.open();
propertyclose Closes the drop down list.

ddl1.close();

Options (items)

Name Description
propertyoptions A collection containing all the items from the drop down list.

ddl1.options
propertylength The total number of items from the drop down list.

for(var i=0; i<ddl1.options.length; i++) { ... }
propertyvalue The value of a specific item.

alert(ddl1.options[index].value);
propertytext The text of a specific item.

alert(ddl1.options[index].text);
propertyadd Adds a new item to the list, at a specific position.
If "index" is not specified, the item will be added at the end of the list.

ddl1.options.add(text, value[, index]);
propertyremove Removes a specific item, based on its index.

ddl1.options.remove(index);
propertyclear Removes all the items from the list.

ddl1.options.clear();

Client-Side Events

Name Description
propertyonchange Used to specify an event handler for the "change" client-side event.

ddl1.onchange = someHandler;
obout.com
obout.com Home
News
Interface Controls Home 
Interface Controls Home
Download
Site Map
Examples - 55
Appearance - 2
Live Styles
Different Styles New
Common Features - 3
Width
Enable / Disable
Reset Values New
Button - 6
Default Button
PostBackUrl
Client-Side Events
Server-Side Events
Server-Side Commands
Client-Side Manipulation
Checkbox - 6 New
AutoPostBack
Linked CheckBoxes with Tri-States
Client-Side Events
Server-Side Events
Client-Side Manipulation
Linked Fields New
Dropdown List - 8
Height
MenuWidth
Multiple Rows and Columns New
AutoPostBack
Linked Fields New
Client-Side Events
Server-Side Events
Client-Side Manipulation
Image Button - 7
Enable specific states
Default Button
PostBackUrl
Client-Side Events
Server-Side Events
Server-Side Commands
Client-Side Manipulation
Radio Button - 5 New
AutoPostBack
GroupName
Client-Side Events
Server-Side Events
Client-Side Manipulation
Textbox - 11
Auto Complete
AutoPostBack New
MaxLength
MaxLength with Counter New
MaxLength with Auto Focus New
TextMode
WatermarkText
Linked Fields New
Client-Side Events
Server-Side Events
Client-Side Manipulation
Integration - 7
Cascading Dropdown Lists
With ASP.NET Validators
Inside Grid
Textbox with DatePicker
Inside User Controls New
Using ASP.NET Themes/Skins New
Create User Wizard New
Knowledge Base - 1
Knowledge Base
Documentation - 22
Server-Side
OboutButton
OboutButtonCssSettings
OboutCheckBox
OboutCheckBoxClientSideEvents
OboutCheckBoxCssSettings
OboutDropDownList
OboutDropDownListClientSideEvents
OboutDropDownListCssSettings
OboutImageButton
OboutRadioButton
OboutRadioButtonClientSideEvents
OboutRadioButtonCssSettings
OboutTextBox
OboutTextBoxClientSideEvents
OboutTextBoxCssSettings
Client-Side
OboutButton
OboutCheckBox
OboutDropDownList
OboutImageButton
OboutRadioButton
OboutTextBox
ChangeLog
Tutorials - 2
Configuration
Using the correct path
Appearance
Changing the font-size / height