1
我有下面的配置,我在網格中加載數據,所以這裏我在過濾器中添加了日期選擇器,但是一旦用戶從日期選擇器中選擇了它的值不是過濾器。任何幫助將不勝感激我不確定我在哪裏實施錯誤。如何爲Date-picker創建Kendo過濾器?
到目前爲止已經試過代碼..
config.js
getall: {
sortable: true,
scrollable: false,
editable: false,
filterable:{
extra: false,
operators: {
string: {
startswith: 'Starts with',
eq: 'Is equal to',
contains: 'Contains'
}
}
},
pageable: {
pageSizes: [10, 20, 30, 40, 50]
},
columns: [
{
field: 'cycStartDate',
title: 'Cycle Start',
width: '300px',
filterable: {
ui: function (element) {
'use strict';
element.kendoDatePicker({
format: 'yyyy-MM-dd'
});
},
operators: {
string: {
eq: 'Is equal to'
}
}
}
}
]
什麼是'嚴格使用';做? –