ASP.NET ListBox - Reset Selection

  • Zimbabwe230
  • Zambia229
  • Yemen228
  • Wallis and Futuna227
  • Wales226
  • Virgin Islands225
  • Vietnam224
  • Venezuela223
  • Vatican City222
  • Vanuatu221
  • Uzbekistan220
  • USA219
  • Uruquay218
  • United Arab Emirates217
  • Ukraine216
 
Reset
This example shows how to reset the selection from the Listbox to the initial selection.

The initial selected index was cached in a client-side variable when the page was loaded and then it is used as a parameter for the selectedIndex method when the Reset button is clicked.

"Thanks for the great support. I will buy the whole suite within a couple of days. You guys are the best!"

Toine A.G. Bastiaans

obout.com 
obout.com Home 
News 
Listbox Home   
Listbox Home 
Examples - 50
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 - 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 
Master/Detail - 3 
Master/Detail  
Unlimited Detail Levels  
Cascading ListBoxes  
Integration - 5 
Items with ASP.NET CheckBoxes  
Items with Obout CheckBoxes  
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