私はこのコードを持っています:
$("#grid_detail").kendoGrid({
dataSource: {
data: orders
},
filterable: {
extra: false,
operators: {
string: {
contains: "Contains",
}
}
},
sortable: true,
columns: [
{
field: "Buyer",
title: "buyer",
width: "40"
},
{
field: "name",
title: "Article name",
width: "40"
},
{
field: "paid",
title: "Paid",
width: "20",
filterable: false
}
]
});
今、どのようにフィールドのバイヤーをフィルタリングすることができますが、オートコンプリートを使用し、 dataSource にあるすべてのバイヤーを表示するには?
バイヤーが提出したこれを試してみましたが、まだ何もありません。
filterable: function(element){
element.kendoAutoComplete({
dataSource: orders,
dataTextField: "buyer",
})
}
ありがとう。