Kendo ui 向网格中添加列时缺少剑道UI网格日期筛选器图标

Kendo ui 向网格中添加列时缺少剑道UI网格日期筛选器图标,kendo-ui,kendo-grid,kendo-asp.net-mvc,Kendo Ui,Kendo Grid,Kendo Asp.net Mvc,这是添加列之前的外观 这是我添加列时的外观 通过比较两种不同的标记,我发现缺少一些类属性 这很奇怪,因为我只添加了一列,没有修改带有日期的列的网格配置 这是配置文件: dataSource: { schema: { model: { fields: { BillId: { type: "number" },

这是添加列之前的外观 这是我添加列时的外观

通过比较两种不同的标记,我发现缺少一些类属性

这很奇怪,因为我只添加了一列,没有修改带有日期的列的网格配置

这是配置文件:

        dataSource: {
            schema: {
                model: {
                    fields: {
                        BillId: { type: "number" },
                        AccountNumber: { type: "string" },
                        FacilityNames: { type: "string" },
                        ServiceStart: { type: "date" },
                        ServiceEnd: { type: "date" },
                        LoadFactor: { type: "number" },
                        PowerFactor: { type: "number" },
                        RatchetValue: { type: "number" },
                        ActualDemandValue: { type: "number" },
                        BillingDemandValue: { type: "number" },
                        EnergyValue: { type: "number" },
                        TotalCharge: { type: "number" },
                        TotalAmountDue: { type: "number" },
                        TotalEnergyCharge: { type: "number" }
                    }
                }
            },
            pageSize: 10
        },
        pageable: {
            buttonCount: 2,
            pageSize: 10,
            info: false
        },
        filterable: {
            mode: "row"
        },
        sortable: true,
        selectable: "cell",
        scrollable: false,
        navigatable: true,
        columns: [
            {
                field: "BillId",
                title: "Action",
                width: "50px",
                template: "<a href=javascript:doOnBillIdClick(#=BillId#); title='Edit' class=fa fa-pencil tbl-edit><span class='fa fa-pencil tbl-edit mr10 green'></span></a>",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: center"
                },
                filterable: false
            },
            {
                field: "BillId",
                title: "Bill ID",
                format: "{0:d}",
                width: "5px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                },
                hidden: true
            },
            {
                field: "AccountNumber",
                title: "Service Account(USN)",
                width: "105px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                filterable: {
                    cell: {
                        operator: "stagtertswith",
                        showOperators: false
                    }
                }
            },
            {
                field: "FacilityNames",
                title: "Facility",
                width: "105px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                filterable: {
                    extra: false,
                    operators: {
                        string: {
                            startswith: "Starts",
                            eq: "Is equal to",
                            neq: "Is not equal to"
                        }
                    },
                    cell: {
                        operator: "startswith",
                        showOperators: false
                    }
                },
                encoded: false,
                template: function (dataItem) {
                    return kendo.toString(dataItem.FacilityNames);
                }
            },
            {
                field: "ServiceStart",
                title: "Service From",
                format: "{0:d}",
                width: "85px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold; width: 50px"
                },
                filterable: {
                    cell: {
                        operator: "gte",
                        showOperators: false
                    }
                }
            },
            {
                field: "ServiceEnd",
                title: "Service To",
                format: "{0:d}",
                width: "85px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                filterable: {
                    cell: {
                        operator: "gte",
                        showOperators: false
                    }
                }
            },
            {
                field: "LoadFactor",
                title: "Load Factor",
                width: "145px",
                format: "{0:n2}",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "PowerFactor",
                title: "Power Factor",
                format: "{0:n2}",
                width: "50px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "RatchetValue",
                title: "Ratchet",
                format: "{0:n2}",
                width: "50px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "ActualDemandValue",
                title: "Actual Demand(KW)",
                format: "{0:n2}",
                width: "40px",
                headerAttributes: {
                    style: "overflow: visible; word-wrap: break-word; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                },
            },
            {
                field: "BillingDemandValue",
                title: "Bill Demand(KW)",
                format: "{0:n2}",
                width: "40px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "EnergyValue",
                title: "Usage",
                format: "{0:n2}",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "TotalCharge",
                title: "Current Charge",
                format: "{0:n2}",
                width: "30px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "TotalAmountDue",
                title: "Total Amount Due",
                format: "{0:n2}",
                width: "30px",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                },
                hidden: true
            },
            {
                field: "TotalEnergyCharge",
                title: "Calc Total",
                format: "{0:n2}",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            },
            {
                field: "DiffTotalInvoiced",
                title: "Diff",
                format: "{0:n2}",
                headerAttributes: {
                    style: "overflow: visible; white-space: normal; text-align: center; font-weight: bold"
                },
                attributes: {
                    style: "text-align: right"
                },
                filterable: {
                    cell: {
                        operator: "eq",
                        showOperators: false
                    }
                }
            }
        ]
数据源:{
模式:{
型号:{
字段:{
BillId:{type:“number”},
帐号:{type:“string”},
FacilityNames:{type:“string”},
ServiceStart:{type:“date”},
ServiceEnd:{type:“date”},
加载因子:{type:“number”},
功率因数:{type:“number”},
棘轮值:{type:“number”},
ActualDemandValue:{type:“number”},
BillingDemandValue:{type:“number”},
能量值:{type:“number”},
总费用:{type:“number”},
TotalAmountDue:{type:“number”},
总电量:{type:“number”}
}
}
},
页面大小:10
},
可分页:{
按钮计数:2,
页面大小:10,
信息:错误
},
可过滤:{
模式:“行”
},
可排序:是的,
可选:“单元格”,
可滚动:false,
可导航:是的,
栏目:[
{
字段:“BillId”,
标题:“行动”,
宽度:“50px”,
模板:“”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体”
},
属性:{
样式:“文本对齐:居中”
},
可过滤:false
},
{
字段:“BillId”,
标题:“票据ID”,
格式:“{0:d}”,
宽度:“5px”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体”
},
可过滤:{
单元格:{
操作员:“eq”,
showOperators:false
}
},
隐藏:真的
},
{
字段:“帐号”,
标题:“服务帐户(USN)”,
宽度:“105px”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体”
},
可过滤:{
单元格:{
接线员:“StattersWith”,
showOperators:false
}
}
},
{
字段:“FacilityNames”,
标题:“设施”,
宽度:“105px”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体”
},
可过滤:{
额外:错,
操作员:{
字符串:{
开始:“开始”,
情商:“等于”,
neq:“不等于”
}
},
单元格:{
接线员:“startswith”,
showOperators:false
}
},
编码:假,
模板:函数(数据项){
返回剑道.toString(dataItem.FacilityNames);
}
},
{
字段:“ServiceStart”,
标题:“服务来自”,
格式:“{0:d}”,
宽度:“85px”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体;宽度:50px”
},
可过滤:{
单元格:{
接线员:“gte”,
showOperators:false
}
}
},
{
字段:“ServiceEnd”,
标题:“为……服务”,
格式:“{0:d}”,
宽度:“85px”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体”
},
可过滤:{
单元格:{
接线员:“gte”,
showOperators:false
}
}
},
{
字段:“加载因子”,
标题:“荷载系数”,
宽度:“145px”,
格式:“{0:n2}”,
校长致辞:{
样式:“溢出:可见;空白:正常;文本对齐:居中;字体大小:粗体”
},
属性:{
样式:“文本对齐:右”
},
可过滤:{
单元格:{
操作员:“eq”,
showOperators:false
}
}
},
{
字段:“功率因数”,
标题:“功率因数”,
格式:“{0:n2}”,
宽度:“50px”,
校长致辞: