Kendo网格中特定列的自定义过滤器消息

时间:2014-09-24 07:10:46

标签: javascript kendo-ui telerik kendo-grid

假设我们在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:'
    }
}]

1 个答案:

答案 0 :(得分:2)

您应该在messages内定义filterable。如下:

{
    field: "ShipAddress",
    filterable: {
        messages: {
            info: 'Show items custom message:'
        }
    }
}
相关问题