Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Item Template

Open the combo box's dropdown window to see how the layout and appearance of items are customized.
v


The DevExpress ASP.Net MVC ComboBox extension supports customizing the layout of combo box items using item templates. In this demo, an item template is used to display a combo box item in a card-like view. Each item shows a contact's name, address, phone number and email address whose values are taken from corresponding data fields of the bound data source using the DataBinder.Eval method. The template code is embedded into the view using the ViewContext.Writer.Write method.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos