[英]Kendo Grid filter event with OData
I have a kendo grid with a dataSource
and the dataSource has the following options: 我有一个带有
dataSource
的kendo网格,并且dataSource具有以下选项:
type: "odata-v4",
serverFiltering: true,
serverPaging: true,
serverSorting: true
Within the grid options I have the following: 在网格选项中,我具有以下内容:
sortable: true,
resizable: true,
reorderable: true,
filterable: true,
filter: function(e) {
console.log(e)
},
However the filter
event never fires. 但是,
filter
事件永远不会触发。 Is it possible to perform server side filtering and have the filter
event fire? 是否可以执行服务器端过滤并触发
filter
事件? I need to get hold of the filter before the dataSource
performs any operations and extend the filter and therefore would prefer to do this without writing custom code for the dataSource. 在
dataSource
执行任何操作并扩展过滤器之前,我需要先掌握过滤器,因此更喜欢这样做,而无需为dataSource编写自定义代码。
Edit I have a custom filter on the column I'm trying to trap. 编辑我要捕获的列上有一个自定义过滤器。
剑道用户界面版本2016.3.914中引入了Grid的filter
事件-如果您使用的是旧版本,请升级。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.