【发布时间】:2018-05-09 08:06:39
【问题描述】:
当没有可显示的记录时,它应该在网格中显示一条自定义消息,该消息将与 kendo-grid-message 一起显示,但我无法更改其样式
代码:
<kendo-grid-messages
[style]="{'background-color':'#666', 'height':'500px','width':'100%'}"
[class]="no-data"
noRecords="There are no items to display.">
</kendo-grid-messages>
plunker:https://plnkr.co/edit/iGLJ06zRVYWDYedAtsDW?p=preview 参考:我正在使用以下示例来设置 Kendo Grid 的样式。 网址:https://www.telerik.com/kendo-angular-ui/components/grid/styling/#toc-customizing-column-styles 谢谢
【问题讨论】:
-
尝试 [ngStyle] 而不是 [style]
-
是的,我也尝试过 [ngStyle],但是控制台中没有显示错误,也没有应用样式
标签: angular kendo-grid