THEMES
THEME SETTINGS

Data Editors - Editor Types Combo Box Item Customization

v

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

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.

Version: v2016 vol 2.5
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.