Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Combo Box Item 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.