0
如何更改kendo网格过滤器中的Dateformat forDate?Kendo UI网格过滤器asp.net更改日期格式
实际上,我有一个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;
}
这将是巨大的,如果任何人都可以给我一个提示。