angular-slickgrid过滤器不起作用。如果键入完整文本,则过滤器将起作用

问题描述 投票:0回答:1

我正在使用angular-slickgrid。我想启用过滤器。下面是代码:

prepareGrid() {
this.columnDefinitions = [
  {
    id: 'title', filterable: true, name: 'Title', field: 'title',
    width: 100, resizable: false
  },
  { id: 'duration', name: 'Duration (days)', field: 'duration', sortable: true, headerCssClass: 'grd-hdr' }
];

this.gridOptions = {
  enableAsyncPostRender: true,
  enableAutoResize: true,       // true by default
  enableCellNavigation: true,
  enableFiltering: true,
  enableAutoSizeColumns: true,
  enableColumnReorder: false,
  enableGridMenu: false,
  forceFitColumns: true,
  rowHeight: 90,
  enableHeaderMenu: false,
  enableColumnPicker: false,
  editable: true,
  autoEdit: true,
  autoHeight: false
};
this.dataset = [{ id: 1, title: 'suresh', duration: 1, percentComplete: '10' }];}

在运行的应用程序上,筛选器无法正常工作。请参见屏幕截图:

在运行的应用程序上,它显示一条记录,标题为suresh:

enter image description here

现在,如果我在过滤器输入框中键入s,则它不会显示任何记录(它应该显示记录,因为有一条记录带有标题suresh)

enter image description here

我无法找到过滤器不起作用的原因。

angular slickgrid
1个回答
0
投票

[那是Angular-Slickgrid库中的一个错误,我是作者,已在此PR中修复,已合并修复并发布了新版本2.14.3

因为这是一个真实的库错误,所以最好直接将其记录在GitHub项目中,而不是Stack Overflow。

© www.soinside.com 2019 - 2024. All rights reserved.