This is a migrated thread and some comments may be shown as answers.

Kendo DropDownList TagHelper - display no data message

2 Answers 776 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Laurie
Top achievements
Rank 1
Iron
Laurie asked on 23 Aug 2019, 06:27 PM

Is there a way to display a customized message when the dataSource bound to a DDL TagHelper is empty?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 28 Aug 2019, 09:47 AM
Hello Laurie,

You can customize the message when the dataSource is empty with the noDataTemplate configuration:
<kendo-dropdownlist name="products" filter="FilterType.Contains"
placeholder="Select product"
datatextfield="ProductName"
datavaluefield="ProductID"
no-data-template="Place your custom message here"
style="width: 100%;">
</kendo-dropdownlist>

Attached you will find a project with DropDownlist, which has an empty dataSource. Note that the message will also be displayed when no results are found after typing in the filter field.

Feel free to contact us if you have additional questions.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Laurie
Top achievements
Rank 1
Iron
answered on 12 Sep 2019, 03:04 PM
Perfect, thanks!
Tags
DropDownList
Asked by
Laurie
Top achievements
Rank 1
Iron
Answers by
Martin
Telerik team
Laurie
Top achievements
Rank 1
Iron
Share this question
or