Javascript 剑道用户界面:通过asp.net mvc实现网格本地化

Javascript 剑道用户界面:通过asp.net mvc实现网格本地化,javascript,asp.net-mvc-4,kendo-ui,kendo-grid,Javascript,Asp.net Mvc 4,Kendo Ui,Kendo Grid,有没有办法通过ASP.NET MVC代码为剑道UI网格设置新消息?我一直使用一个Kendo.Mvc.UI.Fluent.FilterableMessagesBuilder对象,需要将其传递给messages方法。 那么我应该在Messages方法中传递什么来更改值呢 @( Html.Kendo().Grid(Model) .Name("Grid") .Columns(col => { col.Bound(p => p.Id);

有没有办法通过ASP.NET MVC代码为剑道UI网格设置新消息?我一直使用一个Kendo.Mvc.UI.Fluent.FilterableMessagesBuilder对象,需要将其传递给messages方法。 那么我应该在Messages方法中传递什么来更改值呢

@(

Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(col =>
    {
        col.Bound(p => p.Id);
        col.Bound(p => p.FirstName);
        col.Bound(p => p.LastName);
        col.Bound(p => p.Address);
        col.Bound(p => p.Zip);
    })

    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable(filter => filter.Messages(Kendo.Mvc.UI.Fluent.FilterableMessagesBuilder
    .DataSource(dataSource => dataSource
        .Ajax()
        .ServerOperation(false)
    )
)
请查看剑道文档(搜索过滤器菜单的本地化)


谢谢,我已经看过文档,但是没有ASP.NET cshtml编码样式的示例。
     .Filterable(filterable => filterable.Messages(messages =>
         {
             messages.Info("Custom header text"); // sets the text on top of the filter menu
             messages.Filter("CustomFilter"); // sets the text for the "Filter" button
             messages.Clear("CustomClear"); // sets the text for the "Clear" button
         }))