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

EditorTemplateView option does not accept PartialAsync() method #8070

Open
kendo-bot opened this issue Dec 3, 2024 · 0 comments
Open

EditorTemplateView option does not accept PartialAsync() method #8070

kendo-bot opened this issue Dec 3, 2024 · 0 comments
Labels

Comments

@kendo-bot
Copy link
Contributor

kendo-bot commented Dec 3, 2024

Bug report

When loading an editor through a partial View using EditorTemplateView(await Html.PartialAsync("PartialViewName")), the following error occurs:

The 'await' operator can only be used within an async lambda expression. Consider marking this lambda expression with the 'async' modifier.

Reproduction of the problem

@(Html.Kendo().Form<UserViewModel>()
     .Name("myForm")
     .Items(items =>
     {
         items.Add().Field(f => f.Username).EditorTemplateView(await Html.PartialAsync("PartialViewName"));
      })
)

Expected/desired behavior

The EditorTemplateView() must accept Html.PartialAsync("PartialViewName").

Environment

  • **Telerik UI for ASP.NET Core version: 2024.4.1112
  • **Browser: [all]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants