ASP.NET ListBox - Item Templates

  • Alfreds Futterkiste Alfreds Futterkiste / Germany ALFKI
  • Ana Trujillo Emparedados y helados Ana Trujillo Emparedados y helados / Mexico ANATR
  • Antonio Moreno Taquería Antonio Moreno Taquería / Mexico ANTON
  • Around the Horn Around the Horn / UK AROUT
  • Berglunds snabbköp Berglunds snabbköp / Sweden BERGS
  • Blauer See Delikatessen Blauer See Delikatessen / Germany BLAUS
  • Blondesddsl père et fils Blondesddsl père et fils / France BLONP
  • Bólido Comidas preparadas Bólido Comidas preparadas / Spain BOLID
  • Bon app' Bon app' / France BONAP
  • Bottom-Dollar Markets Bottom-Dollar Markets / Canada BOTTM
The items of the ListBox can be customized using templates. You can embed any content inside an item template, including HTML markup and ASP.NET server controls (any control from the Obout suite may be added to a template).

In order to set up an item template, use the ItemTemplate property of the ListBox. To extract data from the data item, use the Eval method which expects as a parameter

"I am very very impressed, happy, satisfied and grateful. Again you have my sincere thanks!"

Cary Abramoff
The Bank of New York Mellon

obout.com 
obout.com Home 
News 
Listbox Home   
Listbox Home 
Examples - 49
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 - 4 
Items with ASP.NET CheckBoxes  
Items with Obout CheckBoxes  
RadioButtons inside ListBox  
ListBox inside Grid  
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