![](/img/trans.png)
[英]Kendo UI ASP.NET MVC - How to apply loading mask on every grid instead of their content?
[英]Kendo UI: Localization of the grid through asp.net mvc
有什么方法可以通过ASP.NET MVC代码为Kendo 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)
)
)
.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
}))
请查看Kendo文档(搜索过滤器菜单的本地化)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.