简体   繁体   中英

Custom filter messages for specific columns in Kendo grid

Let's say we have a grid like in this Telerik example:

http://dojo.telerik.com/UkiH/2

Default info message for grid filter is: 'Show items with value that:'

Is there a way to change that message for only one specific column in grid, and others to remain with default messages?

Something like:

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:'
    }
}]

You should define messages inside filterable . Something as follows:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM