如何解决如何在 odata 后端为 aurelia slickgrid 更新过滤器
这对后端调用请求没有影响。知道为什么以及如何使用添加的过滤器查询发出新的 odata 请求。
public setFilter(filter: string) {
console.log("set filter ",filter);
this.filterValue = filter;
const odataService = this.gridOptions.backendServiceApi.service;
console.log("filterValue ",this.filterValue);
odataService.updateOptions({ filter: this.filterValue } as OdataOption);
console.log("odataService update ",odataService);
odataService.processOnFilterChanged
odataService.clearFilters();
this.aureliaGridObj.filterService.clearFilters();
return true;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。