Completed
Last Updated: 22 Mar 2023 06:36 by ADMIN
Vladyslav
Created on: 31 Oct 2022 09:11
Category: Grid
Type: Bug Report
0
Quotes in the HtmlAttributes configuration option cannot be applied for the Grid's columns

Bug report

Reproduction of the problem

  • Run the following Telerik REPL.
  • Notice the logged error within the console.

Current behavior

Having a grid with a similar column setup will result in an error.

.Columns(columns =>
{
    columns.Bound(p => p.UnitsInStock).HtmlAttributes(new { @class = "#: UnitsInStock == 39 ? 'test' : 'a' #" });
})

Expected/desired behavior

Having a grid with a similar column setup should not result in an error.

.Columns(columns =>
{
    columns.Bound(p => p.UnitsInStock).HtmlAttributes(new { @class = "#: UnitsInStock == 39 ? 'test' : 'a' #" });
})

Environment

  • Kendo UI version: 2022.3.913
  • Browser: [all]
0 comments