【发布时间】:2014-10-13 08:18:18
【问题描述】:
这是我的剑道网格,
@(Html.Kendo().Grid<example.Web.Areas.Models.PredictedValues>()
.Name("MyGrid")
.Columns(column =>
{
column.Bound(p => p.Rlno).Title("Roll no").HtmlAttributes(new { @class = "someclass" });
column.Bound(p => p.stdname).Width(60).Title("Std name").HtmlAttributes(new { style = "text-align:right;" });
column.Bound(p => p.school).Width(50).Title("School").HtmlAttributes(new { style = "text-align:right;" });
})
))
我需要通过类将一些样式应用于标题名称。包含的@class 不适用于标题。相反,它与表格行绑定。我该怎么做?有什么想法吗?
【问题讨论】: