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

Item Appearance Customization

Open the combo box's dropdown window to see how the appearance of items is customized. Hover an item to see a custom tooltip.
v


This demo illustrates how to specify style settings for DevExpress MVC ComboBox items using the ItemTextCellPrepared and ItemRowPrepared events.

To customize the appearance of the "Contact Name" and "Phone" columns in the editor, the ItemTextCellPrepared event is used. Cells in the "Contact Name" column are marked with the green color if the "Title" field value of a corresponding record in the data base is "Owner". These cells have a tooltip that displays the "Owner" text. In the "Phone" column, all phone numbers are italicized and marked with the red color.

The ItemRowPrepared event is used to specify rows with a custom tooltip that shows information from the "Country", "City", and "Address" fields.

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