kendo ui angular2 grid - 如何将类应用于网格行

Sko*_*šek 2 telerik telerik-grid angular

如何根据某些条件将css类应用于网格行(TR)?

我知道我可以将类应用于列而不是整个TR.

小智 5

首先,使用rowClass基于行数据生成所需的行.(行类回调函数)第二,使用css来设置样式行(ViewEncapastion.Emulated需要bee/deep/grammer)..k-gird/deep/tr.xxx

  • 这就是我正在寻找的东西.请参阅http://www.telerik.com/kendo-angular-ui/components/grid/api/GridComponent/#toc-rowclass (2认同)