0

我正在使用 Kendo UI,我正在尝试通过以下代码在网格中使用 filter 属性

    @(Html.Kendo().Grid(Model)
    .Name("TaskListGrid")
    .Columns(columns =>
    {
        columns.Bound(p => p.Description);
        columns.Bound(p => p.InstrumentType.DisplayName).Title("Instrument Type");
        columns.Bound(p => p.CounterParty).Title("Counterparty");
        columns.Bound(p => p.CommodityType);
        columns.Bound(p => p.ContractDate).Format(Settings.Current.DatePattern);
        columns.Bound(p => p.Price);
        columns.Bound(p => p.Currency);
        columns.Bound(p => p.Comment);
        columns.Template(@<text>
@Html.ActionLink("View details", "Index", item.InstrumentType.DetailController(), new {      Id = item.ContractId }, null)
</text>).Width(120);
     })
    .Filterable()
    .Sortable()

当我在我的 localSTS 中执行此代码时,过滤在 ContractDate(没有时间组件的 DateTime)上正常工作。但是,当我在不进行任何更改的情况下部署相同的代码时,在部署的环境中,对于 ContractDate 过滤无法正常工作,有人可以帮我解决这个问题吗

4

0 回答 0