Grid throws an error when there are double quotes in foreign key column values:
new TestSelectItem { Text = "AAA\"BBB\"CCC", Value = "2" },
The following error is thrown in the console:
SyntaxError: Failed to execute 'appendChild' on 'Node': Unexpected identifier 'My' (at VM20:1:144)
There should be no error and the value should appear escaped:
Workaround:
Text = item.Text?
.Replace("\\", "\\\\")
.Replace("\"", "\\\"")
The issue is a regression starting with Ui for ASP.NET Core version 2024.4.1112