ASP.NET ComboBox - Documentation - Client-Side API

<%@ Register TagPrefix="obout" Namespace="Obout.ComboBox" Assembly="obout_ComboBox" %>

Client-Side Methods

Name Description
propertyvalue Gets or sets the selected value.

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

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

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

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

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

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

ComboBox1.close();
propertygetItemByIndex Gets the HTML element representing an item, based on its index.

var item = ComboBox1.getItemByIndex(3);

Items

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

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

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

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

alert(ComboBox1.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.

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

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

ComboBox1.options.clear();

"The components Obout has are very cool ... keep up the good work"

Barry Cedergren

obout.com 
obout.com Home 
News 
ComboBox Home   
ComboBox Home 
Examples - 64
Appearance - 2 
Live Styles 
Different Styles New 
Autocomplete & Filtering - 2 
Autocomplete  
Filtering  
Load on Demand - 7 
Load Items on Demand 
Load Items on Demand with Paging  
Virtual Scrolling  
Initial Text New 
Initial Text on Client-Side New 
Load Items on Button Click New 
Load Items with MinChars New 
Multi-Columns - 4 
Grid-like Multi-Columns  
Multiple Rows and Columns  
Load multi Columns on Demand  
State Selector  
Items with Icons - 3 
Items with Icons  
Grid-like Multi-Columns with Icons  
Multiple Rows and Columns with Icons  
Templates - 3 
Item Templates  
Header Templates  
Populating with Data - 5 
Declarative  
SqlDataSource  
ObjectDataSource  
Generic Collections  
DataSet  
Item Selection - 6 
Single Item Selection  
Multi Item Selection  
Get Selected Item  
Get Selected Items  
Set Selected Item New 
Set Selected Items New 
Mode - 2 
ComboBox  
TextBox  
Master/Detail - 3 
Master/Detail  
Unlimited Detail Levels  
Cascading ComboBoxes  
Integration - 7 
Items with ASP.NET CheckBoxes  
Items with Obout CheckBoxes  
RadioButtons inside ComboBox  
TreeView inside ComboBox  
TreeView with Full Path New 
ComboBox inside Grid  
CheckBoxes Loaded On-Demand New 
Settings - 8 
AllowCustomText  
AllowEdit  
AutoPostback  
AutoValidate  
Height  
MenuWidth  
OpenOnFocus  
Width  
Server-Side API - 4 
Server-Side Events  
Enable / Disable  
Get Values from Multiple Columns New 
Tooltips New 
Client-Side API - 7 
Client-Side Events  
Add / Remove Items  
Add Multi-Column Items New 
Enable / Disable  
Get Selected Item  
Reset Selection New 
Select / Deselect All Items New 
Appearance Customization - 1 
Aligning Items New 
Knowledge Base - 1 
Knowledge Base 
Documentation - 13 
Server-Side 
ComboBox 
ComboBoxClientSideEvents 
ComboBoxCssSettings 
ComboBoxFilterType 
ComboBoxFooterTemlateContainer 
ComboBoxHeaderTemlateContainer 
ComboBoxItem 
ComboBoxItemEventArgs 
ComboBoxItemTemlateContainer 
ComboBoxLoadingItemsEventArgs 
ComboBoxMode 
Client-Side 
Client-Side API 
ChangeLog 
Tutorials - 2 
Appearance - 1 
CSS Tutorial  
Configuration - 1 
Using the correct path