Unplanned
Last Updated: 08 Jan 2025 14:55 by Julius
Julius
Created on: 08 Jan 2025 14:55
Category: AutoComplete
Type: Bug Report
0
The NoDataTemplate() option is not serialized when set to an empty string

### Bug report

When setting the NoDataTemplate() option to an empty string, the option is not serialized.

### Reproduction of the problem

1. Define an AutoComplete with NoDataTemplate("")

2. Search for a non-existing option and notice how the popup opens and displays the default "No data found" message. When initializing the AutoComplete with jQuery and the "noDataTemplate" is set to "", the popup does not open.

A REPL sample for reproduction: https://netcorerepl.telerik.com/cfkPEClS50FUVU5z00

### Expected/desired behavior

When the NoDataTemplate("") is set and there are no results, the popup must not open. The NoDataTemplate option must work equally when using either the AutoComplete HtmlHelper or Kendo UI for jQuery AutoComplete.

### Environment

* **Telerik UI for ASP.NET MVC version: 2024.4.1112
* **Browser: [all]

0 comments