为Kendo网格中的特定列自定义筛选消息



假设我们有一个类似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:'
        }
    }
}

最新更新