【发布时间】:2013-06-02 13:30:44
【问题描述】:
我有这个代码:
$("#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",
})
}
谢谢。
【问题讨论】:
-
您的案例与此剑道演示示例有何不同?demos.kendoui.com/web/grid/filter-menu-customization.html。他们正在使用“标题”过滤器,这是一个自动完成功能,唯一值得怀疑的细节是分页是否会影响自动完成列表中显示的项目范围,这是导致您出现问题的原因吗?
标签: filter kendo-ui datasource kendo-grid