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.
  • The kendoComboBoxNoDataTemplate directive for the ComboBox.
  • The kendoDropDownListNoDataTemplate directive for the DropDownList.
  • The kendoMultiSelectNoDataTemplate directive for the MultiSelect.
@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> = [];
}

For more examples, refer to the article on templates.

Selector

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

In this article