【发布时间】:2016-04-27 08:31:27
【问题描述】:
如何更改剑道网格过滤器中的日期格式?
其实我有一个FilterableOperatorsBuilder ForDate,但是不知道怎么解决。我总是在过滤日期选择器中得到 01/04/2016 作为日期,但我需要 2016-04-01。
这是我到目前为止所拥有的:
public static Action<GridFilterableSettingsBuilder> FilterSettings()
{
Action<GridFilterableSettingsBuilder> configurator = ftb =>
{
ftb.Mode(GridFilterMode.Menu);
ftb.Extra(false).Operators(o => o.ForString(str => str
.Clear()
.Contains("Contains")
.IsEqualTo("Is equal to")
.IsNotEqualTo("Is not equal to")
.StartsWith("Starts with")
.EndsWith("Ends with")));
ftb.Extra(false).Operators(o => o.ForDate(
--->> I think ii need to change the date format right here?
));
};
return configurator;
}
如果有人可以给我提示,那就太好了。
【问题讨论】:
标签: asp.net-mvc kendo-ui grid