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

Item Template

v


The DevExpress GridLookup extension for ASP.NET MVC includes many of the powerful data representation features of the GridView, including support for templates. Templates can be defined for different elements of the built-in grid such as data rows and data cells.

This demo illustrates how the layout of the editor's list items can be modified by creating a template for the drop-down grid data rows via the SetDataRowTemplateContent property.

In this demo, incremental filtering is performed over the values of the first two data columns defined within the editor's Columns collection - 'First Name' and 'Last Name'. The Properties.TextFormatString property uses indexed placeholders ({0} and {1}) that correspond to column indexes within the Columns collection. Thus, the Properties.TextFormatString property defines the format for displaying the value of the selected item within the edit box.

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\MVCxGridViewDemos