Kendo UI:Grid中单元格样式控制

2015-01-27 06:04:55 · 作者: · 浏览: 8

问题

Grid某个单元格的样式怎么设置?

解决方案

使用attributes属性设置,如果有css中class属性,需要加双引号””.如

{
    field: "name",
    title: "Name",
    attributes: {
      "class": "table-cell",
      style: "text-align: right; font-size: 14px"
    }
  }