在Kendo Grid中为行着色 [英] Color out a row in Kendo Grid
本文介绍了在Kendo Grid中为行着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Kendo网格,其值根据帖子调用填充.如果某列中的一个值为"registered",则我需要将整行显示为灰色.
I have a Kendo Grid whose values get populated based on a post call. I need to gray out an entire row if one of the column has a value "REGISTERED".
有没有办法实现这一目标?
Is there a way we can achieve this?
这是我的代码:
$("#grid").kendoGrid({
columns: [
{ field: "name", title: "Release Name" },
{ field: "number", title: "Number" },
{ field: "status", title: "Registration Status" }
],
dataSource: [
{ name: "Jane Doe", number: "50", status: "REGISTERED" },
{ name: "John Doe", number: "60", status: "NOT REGISTERED" }
]
});
推荐答案
只需检查此小提琴链接
我使用kendo的dataSource创建了演示网格示例
I have created demo grid example using kendo's dataSource
Hope This May Help You.
这篇关于在Kendo Grid中为行着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文