I am migrating an application from release 2012.3.1114 to release 2013.1.319. Previously, I was able to apply HtmlAttributes on columns in this manner:
With release 2013.1.319, an "invalid template" error is generated from the above code. If I change HtmlAttributes to HeaderHtmlAttributes, no errors are generated and the style is applied to the column header (i.e. the format of the HtmlAttributes isn't a problem). I did verify that I could use HtmlAttibutes on a column with an @class parameter successfully, which is the correct way of applying styles. I guess I'm wondering if this capability (local CSS styling via HtmlAttributes) was intentionally removed, or if I'm doing something wrong?
Note: Moved from Kendo UI Web forum.
@(Html.Kendo().Grid<
ToolListItemView
>().Name("texListGrid")
.Columns(columns => {
columns.Bound(m => m.ToolId);
columns.Bound(m => m.Description).HtmlAttributes(new { style = "font-size: 1.3em;" });
columns.Bound(m => m.LastModified);
columns.Bound(m => m.ConditionName);
columns.Bound(m => m.LocationName);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("ToolsRead", "List").Data("listParams"))
)
)
Note: Moved from Kendo UI Web forum.