Custom Rendering

The DropDownList provides options for customizing the way it renders its elements.

The DropDownList utilizes custom renderers which enable you to moderate the content of its:

Items

To customize the content of each option list item, use the itemRender prop.

The following example demonstrates how to set the itemRender prop of the DropDownList and customize the list elements.

Example
View Source
Change Theme:

Values

To customize the element content that holds the selected text, use the valueRender prop.

Example
View Source
Change Theme:

Headers and Footers

To set a header or a footer element in the DropDownList items popup, use the header and footer props.

Example
View Source
Change Theme:

No Data

To customize the content of the option list when no data is present, use the listNoDataRender prop.

Example
View Source
Change Theme:

In this article

Not finding the help you need?