Unplanned
Last Updated: 14 Aug 2026 10:32 by Steven
Steven
Created on: 14 Aug 2026 10:32
Category: Grid
Type: Bug Report
1
Grid foreignkey column not escaping quotes when appearing in default popup editor

Bug report

Grid throws an error when there are double quotes in foreign key column values:

new TestSelectItem { Text = "AAA\"BBB\"CCC", Value = "2" },

Reproduction of the problem

  1. Open and run the attached sample projectBadQuotes_sample.zip
  2. Click ‘Add’ button

Current behavior

The following error is thrown in the console:

SyntaxError: Failed to execute 'appendChild' on 'Node': Unexpected identifier 'My' (at VM20:1:144)

Expected/desired behavior

There should be no error and the value should appear escaped:

image-20260814-102715.png

Workaround:

Text = item.Text?
    .Replace("\\", "\\\\")
    .Replace("\"", "\\\"")

TicketID: 1717693

The issue is a regression starting with Ui for ASP.NET Core version 2024.4.1112

Environment

  • Kendo/Telerik version: 2026.3.811
  • Browser: [all ]
0 comments