diff --git a/Griddly.NetCore.Razor/Pages/Shared/Griddly/Griddly.cshtml b/Griddly.NetCore.Razor/Pages/Shared/Griddly/Griddly.cshtml index f54b469..200c17c 100644 --- a/Griddly.NetCore.Razor/Pages/Shared/Griddly/Griddly.cshtml +++ b/Griddly.NetCore.Razor/Pages/Shared/Griddly/Griddly.cshtml @@ -317,7 +317,14 @@ @foreach (GriddlyColumn column in settings.Columns) { var underlyingValue = column.RenderUnderlyingValue(row, Html); - data-value="@underlyingValue" }>@column.RenderCell(row, settings, Html) + var htmlAttributes = column.GenerateHtmlAttributes(row, Model); + string additionalClassNames = null; + if (htmlAttributes?.ContainsKey("class") == true) + { + additionalClassNames = htmlAttributes["class"]?.ToString(); + htmlAttributes.Remove("class"); + } + data-value="@underlyingValue" }>@column.RenderCell(row, settings, Html) } } diff --git a/Griddly/Views/Shared/Griddly/Griddly.cshtml b/Griddly/Views/Shared/Griddly/Griddly.cshtml index 98ca836..deaf7c1 100644 --- a/Griddly/Views/Shared/Griddly/Griddly.cshtml +++ b/Griddly/Views/Shared/Griddly/Griddly.cshtml @@ -304,7 +304,14 @@ @foreach (GriddlyColumn column in settings.Columns) { var underlyingValue = column.RenderUnderlyingValue(row, Html); - data-value="@underlyingValue" }>@column.RenderCell(row, settings, Html) + var htmlAttributes = column.GenerateHtmlAttributes(row, Model); + string additionalClassNames = null; + if (htmlAttributes?.ContainsKey("class") == true) + { + additionalClassNames = htmlAttributes["class"]?.ToString(); + htmlAttributes.Remove("class"); + } + data-value="@underlyingValue" }>@column.RenderCell(row, settings, Html) } }