自定义 kendo 日期过滤器和措辞
Customize kendo date filter and verbiage
我正在尝试将日期列的 kendo 网格过滤器更改为仅声明 "From" 和 "to"。我找不到使用 MVC Razor 语法执行此操作的方法。
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contains",
startswith: "Starts With",
eq: "Is Equal To"
}
}
}
如果你想使用 Razor 我猜你使用的是 ASP.NET MVC 版本,语法是
.Filterable(filterable => filterable
.Extra(false)
.Operators(operators => operators
.ForString(str => str.Clear()
.StartsWith("Starts with")
.IsEqualTo("Is equal to")
.IsNotEqualTo("Is not equal to")
))
)
https://demos.telerik.com/aspnet-mvc/grid/filter-menu-customization
我正在尝试将日期列的 kendo 网格过滤器更改为仅声明 "From" 和 "to"。我找不到使用 MVC Razor 语法执行此操作的方法。
filterable: {
extra: false, //do not show extra filters
operators: { // redefine the string operators
string: {
contains: "Contains",
startswith: "Starts With",
eq: "Is Equal To"
}
}
}
如果你想使用 Razor 我猜你使用的是 ASP.NET MVC 版本,语法是
.Filterable(filterable => filterable
.Extra(false)
.Operators(operators => operators
.ForString(str => str.Clear()
.StartsWith("Starts with")
.IsEqualTo("Is equal to")
.IsNotEqualTo("Is not equal to")
))
)
https://demos.telerik.com/aspnet-mvc/grid/filter-menu-customization