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.