ASP.NET ComboBox - Initial Text on Client-Side

Set Initial Text
The items of the ComboBox can be loaded on-demand (via AJAX requests). The advantage of using this approach
is that the items are loaded only when the end user types something into the input field.
Thus, the page will load very fast because no item is loaded on page load.

In order to enable the on demand loading feature, set the EnableLoadOnDemand property to true.
You also need to handle the LoadingItems server-side event, which is executed each time the ComboBox
requests items from the server via AJAX. The server-side event handler will load all the items that match the text typed in the input field.

If you need to initially load the items that match a specific text, you need to use a ComboBoxItem that has its Text and Value properties set to the initial text that you want to search for. Also, the Selected property of this ComboBoxItem needs to be set to true.

For this sample we used a JavaScript function to add a new item to the list and select it.
Then, when the user will focus the ComboBox, the items starting with "E" will be loaded.

"Congratulations by your good job in obout controls. I have proud in use this controls because they have a best quality that i never saw before."

Carlos Barata

Random testimonial   All testimonials

obout.com 
obout.com Home 
News 
ComboBox Home   
ComboBox Home 
Examples - 73
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 - 5 
Grid-like Multi-Columns  
Grid-like Multi-Columns on Demand  
Grid-like Multi-Columns & Tooltips New 
Multiple Rows and Columns  
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  
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 - 13 
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 ComboBox  
TreeView inside ComboBox  
TreeView with Full Path New 
ComboBox inside Grid  
Grid inside ComboBox New 
Master/Detail ComboBox inside Grid 
CheckBoxes Loaded On-Demand New 
Validate with ASP.NET Validators 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