ASP.NET ListBox - Documentation - ListBox

Obout.ListBox namespace
Obout.ListBox.ListBox class
<%@ Register TagPrefix="obout" Namespace="Obout.ListBox" Assembly="obout_ListBox" %>
Properties
Name Description
property AutoPostBack Bool. Gets or sets a value indicating whether the page will be posted back to the server when the selected item is changed. Default: false

See also working example.
property ClientSideEvents ListBoxClientSideEvents. Property used to define the Client-Side Events.

See also working example.
property CssSettings ListBoxCssSettings. Property used to define the CSS Settings.
property DataSource Object. Gets or sets the object from which the ListBox retrieves its list of data items.
property DataSourceID Object. Gets or sets the ID of the control from which the ListBox retrieves its list of data items.
property DataTextField String. Gets or sets the field of the data source that provides the text content of the list items.
property DataValueField String. Gets or sets the field of the data source that provides the value of each list item.
property Details ListBoxDetailCollection. Collection containing the detail for a master ListBox.
property Enabled Bool. Gets or sets a value indicating whether the ListBox control is enabled.

See also working example.
property EnableLoadOnDemand Bool. Gets or sets a value indicating whether the on demand loading feature is enabled. Default: false

See also working example.
property EnableVirtualScrolling Bool. Gets or sets a value indicating whether items are loaded on demand when the ListBox control is scrolled. Default: false

See also working example.
property Focused Bool. Gets or sets a value indicating whether the ListBox will be focused when the page is loaded. Default: false
property FolderStyle String. The folder containing the css stylesheet used by the control.

See also working example.
property FooterTemplate ITemplate. The template used for the footer of the ListBox.
property HeaderTemplate ITemplate. The template used for the header of the ListBox.
property Height Unit. Gets or sets the height of the ListBox control.

See also working example.
property ID String. Gets or sets the programmatic identifier assigned to the ListBox control.
property Items ListBoxItemCollection. Gets the collection of items in the list.
property ItemTemplate ITemplate. The template to be used for the items of the ListBox.

See also working example.
property LoadingText String. Gets or sets the text that is displayed while the ListBox loads its items on demand.

See also working example.
property SelectedIndex Int. Gets or sets a value indicating the selected index. Default: -1

See also working example.
property SelectedText String. Gets or sets the selected text of the ListBox.

See also working example.
property SelectedValue String. Gets or sets the selected value of the ListBox.

See also working example.
property SelectionMode ListSelectionMode. Gets or sets a value indicating the selection mode used by the ListBox. Default: ListSelectionMode.Single

See also working example.
property Visible Bool. Gets or sets a value that indicates whether the ListBox is rendered as UI on the page. Default: true
property Width Unit. Gets or sets the width of the ListBox control. Default: 150px

See also working example.
Events
Name Description
property ItemCreated ListBoxItemCreatedEventHandler ca si tip, fara link si text: raised when an item is created.
property ItemDataBound ListBoxItemDataBoundEventHandler raised when an item is bound to its data item.
property LoadingItems ListBoxLoadingItemsEventHandler raised when the load on demand feature sends an AJAX request to load the next set of items.
property SelectedIndexChanged ListBoxSelectedIndexChangedEventHandler raised when the selection is changed.
Methods
Name Description
property DataBind Binds a data source to the invoked ListBox control.
property Focus Sets input focus to the ListBox control.
obout.com 
obout.com Home 
News 
ListBox Home   
ListBox Home 
Examples - 56
Appearance - 2 
Live Styles 
Different Styles New 
Load on Demand - 3 
Load Items on Demand 
Load Items on Demand with Paging  
Virtual Scrolling  
Multi-Columns - 5 
Grid-like Multi-Columns  
Grid-like Multi-Columns & Tooltips New 
Multiple Rows and Columns  
Load multi Columns on Demand  
State Selector  
Items with Icons - 4 
Items with Icons  
Grid-like Multi-Columns with Icons  
Multiple Rows and Columns with Icons  
Icons from Database New 
Templates - 4 
Item Templates  
Header Templates  
Dynamic Header Templates New 
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 
Master/Detail - 3 
Master/Detail  
Unlimited Detail Levels  
Cascading ListBoxes  
Integration - 8 
Items with ASP.NET CheckBoxes  
Items with Obout CheckBoxes  
Select All ASP.NET CheckBoxes New 
Select All Obout CheckBoxes New 
CheckBoxes on Multiple Columns New 
RadioButtons inside ListBox  
ListBox inside Grid  
Validate with ASP.NET Validators New 
Settings - 3 
AutoPostback  
Height  
Width  
Server-Side API - 4 
Server-Side Events  
Enable / Disable  
Get Values from Multiple Columns New 
Tooltips New 
Client-Side API - 8 
Client-Side Events  
Add / Remove Items  
Add Multi-Column Items New 
Enable / Disable  
Get Selected Item  
Reset Selection New 
Select / Deselect All Items New 
Move Items New 
Appearance Customization - 1 
Aligning Items New 
Knowledge Base - 1 
Knowledge Base 
Documentation - 11 
Server-Side 
ListBox 
ListBoxClientSideEvents 
ComboBoxCssSettings 
ListBoxFooterTemlateContainer 
ListBoxHeaderTemlateContainer 
ListBoxItem 
ListBoxItemEventArgs 
ListBoxItemTemlateContainer 
ListBoxLoadingItemsEventArgs 
Client-Side 
Client-Side API 
ChangeLog 
Tutorials - 2 
Appearance - 1 
CSS Tutorial  
Configuration - 1 
Using the correct path