【问题标题】:Custom filter messages for specific columns in Kendo gridKendo 网格中特定列的自定义过滤器消息
【发布时间】:2014-09-24 07:10:45
【问题描述】:

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

【问题讨论】:

    标签: javascript kendo-ui telerik kendo-grid


    【解决方案1】:

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

    {
        field: "ShipAddress",
        filterable: {
            messages: {
                info: 'Show items custom message:'
            }
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2014-02-18
      • 2014-12-23
      • 2021-05-06
      • 1970-01-01
      • 1970-01-01
      • 2014-10-02
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多