New to Kendo UI for Angular? Start a free 30-day trial

Templates

The ComboBox provides templates which enable you to customize the content of its suggestion list items and elements.

Item Template

To customize the content of the list items, use the item template. To define an item template, nest an <ng-template> tag with the kendoComboBoxItemTemplate directive inside a <kendo-combobox> tag.

The template context is set to the current ComboBox component. To get a reference to the current data item, use the let-dataItem directive.

Example
View Source
Edit In Stackblitz  
Change Theme:

Header Template

To customize the header element of the suggestion list, use the header template. To define a header template, nest an <ng-template> tag with a kendoComboBoxHeaderTemplate directive inside a <kendo-combobox> tag.

The template context is set to the current ComboBox component.

Example
View Source
Edit In Stackblitz  
Change Theme:

To customize the footer element of the suggestion list, use the footer template. To define a footer template, nest an <ng-template> tag with a kendoComboBoxFooterTemplate directive inside a <kendo-combobox> tag.

The template context is set to the current ComboBox component.

Example
View Source
Edit In Stackblitz  
Change Theme:

No-Data Template

To customize the content of the suggestion list when no data is available, use the no-data template. To define a no-data template, nest an <ng-template> tag with a kendoComboBoxNoDataTemplate directive inside a <kendo-combobox> tag.

Example
View Source
Edit In Stackblitz  
Change Theme:

Group Header Template

To customize the content of the group headers in the list, nest an <ng-template> tag with a kendoComboBoxGroupTemplate directive inside a <kendo-combobox> tag.

The current group name is available as implicit context variable (let-groupName).

Example
View Source
Edit In Stackblitz  
Change Theme:

Fixed Group Header Template

To customize the content of the group header that is fixed above the list, nest an <ng-template> tag with a kendoComboBoxFixedGroupTemplate directive inside a <kendo-combobox> tag.

The current group name is available as an implicit context variable (let-groupName).

Example
View Source
Edit In Stackblitz  
Change Theme: