Kendo-ui-core: "No data" template

Created on 16 May 2016  路  8Comments  路  Source: telerik/kendo-ui-core

The contents of the template should be displayed in the widget's drawer when the filter applied does not match any results.

The template should have access to the filter string.

Related UV request: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/8429415-allow-adding-additional-buttons-to-combobox-and-dr

AutoComplete ComboBox DropDownList MultiSelect Feature

Most helpful comment

Is there any way to hide 'No data' template? I wanted to use multiselect only for custom values.

All 8 comments

The feature would greatly benefit from a demo // @yordanov

@yordanov and @inikolova should design and style the 'no-data' element.

The message must be short and simple:

"No data found."

It should be placed in the center of the popup. Text color should get the k-state-disabled color.

Additionally set:
text-transform: uppercase;
font-size: 0.85em;
font-weight: light;

Nova theme preview:

nodatafound

The default noDataTemplate text is updated. I will assign the issue to @inikolova to close it once the styling is done.

@inikolova, please update the k-nodata>span selector to style k-nodata>div elements. This is due the refactor done in d4dca17

Hi,

Can I somehow localize "NO DATA FOUND." in the kendo-drop-down-list? I suspect it is from noDataTemplate:"No data found." from the kendo.all.min.js

@giond Try using <ng-template kendoDropDownListNoDataTemplate> YOUR CUSTOM TEXT </ng-template>
right before closing </kendo-dropdownlist>

Is there any way to hide 'No data' template? I wanted to use multiselect only for custom values.

Was this page helpful?
0 / 5 - 0 ratings