Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The NoDataTemplate() option is not serialized when set to an empty string #8092

Open
kendo-bot opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@kendo-bot
Copy link
Collaborator

kendo-bot commented Jan 8, 2025

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants