假设我们有一个像 Telerik 示例中那样的网格:
http://dojo.telerik.com/UkiH/2
网格过滤器的默认信息消息是:“显示具有以下值的项目:”
有没有办法只更改网格中一个特定列的消息,而其他列则保留默认消息?
类似于:
columns: [{
field: "OrderID",
title: "Order ID",
width: 120
}, {
field: "ShipCountry",
title: "Ship Country"
}, {
field: "ShipName",
title: "Ship Name"
}, {
field: "ShipAddress",
filterable: true,
messages: {
info: 'Show items custom message:'
}
}]
最佳答案
您应该在filterable
内定义messages
。内容如下:
{
field: "ShipAddress",
filterable: {
messages: {
info: 'Show items custom message:'
}
}
}
关于javascript - Kendo 网格中特定列的自定义过滤器消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26010692/