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

Encoded character breaks the custom editor template #7445

Closed
kendo-bot opened this issue Jul 21, 2023 · 0 comments
Closed

Encoded character breaks the custom editor template #7445

kendo-bot opened this issue Jul 21, 2023 · 0 comments

Comments

@kendo-bot
Copy link
Contributor

kendo-bot commented Jul 21, 2023

Bug report

When the custom editor template of the Scheduler contains a label text with a special character, it is encoded automatically. If the encoding contains a hash literal (#), it throws a client-side error "Invalid template".

Reproduction of the problem

  1. Create a Scheduler with a custom editor template.

  2. Add a label for a specified Model property by using the @(Html.LabelFor(model => model)) configuration.

  3. Add a label text with a special character as per the example below.

<div class="k-edit-label">
    @(Html.LabelFor(model => model.Title, "Durchfüehrung"))
</div>

<div data-container-for="title" class="k-edit-field">
    @(Html.Kendo().TextBoxFor(model => model.Title)
        .HtmlAttributes(new  { data_bind = "value: title"})
      )
    <span data-for="title" class="k-invalid-msg"></span>
</div>
  1. Try to add an event or edit an existing event. Open the browser console to review the error:

image

Expected/desired behavior

The hash literals in the encoded strings should be escaped automatically.

Environment

  • **Telerik UI for ASP.NET Core version: 2023.2.718
  • **Browser: [all]
@kendo-bot kendo-bot added the FP: Unplanned Sync status with associated Feedback Item label Jul 21, 2023
@mihaela-lukanova mihaela-lukanova self-assigned this Jul 21, 2023
@mihaela-lukanova mihaela-lukanova added FP: In Development Sync status with associated Feedback Item and removed S: Wrappers (ASP.NET MVC) labels Jul 21, 2023
@github-actions github-actions bot removed the FP: Unplanned Sync status with associated Feedback Item label Jul 21, 2023
@github-actions github-actions bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Nov 7, 2023
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