All Components

NoDataTemplateDirective

Used for rendering content when there is no data present. To define the no-data template, nest a <ng-template> tag
with the kendo<ComponentName>NoDataTemplate directive inside the component tag.

You can use:

  • The kendoAutoCompleteNoDataTemplate directive for the AutoComplete (see example).
  • The kendoComboBoxNoDataTemplate directive for the ComboBox (see example).
  • The kendoDropDownListNoDataTemplate directive for the DropDownList (see example).
  • The kendoMultiSelectNoDataTemplate directive for the MultiSelect (see example).
@Component({
selector: 'my-app',
template: `
 <kendo-combobox [data]="listItems">
   <ng-template kendoComboBoxNoDataTemplate>
     <h4>No data!</h4>
   </ng-template>
 </kendo-combobox>
`
})
class AppComponent {
  public listItems: Array<string> = [];
}

Selector

[kendoDropDownListNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate]

In this article