简体   繁体   English

使用分组时如何在AngularJS ui-grid中进行过滤?

[英]How to do filtering in AngularJS ui-grid when using Grouping?

I just added Grouping function in my ui-grid, but then I found that the filtering function is broken. 我刚刚在ui-grid中添加了分组功能,但是随后发现过滤功能已损坏。 It happends in the official tutorial . 它发生在官方教程中 In the example, no matter what you type in the filter box in the demo, nothing will change in the grid. 在此示例中,无论您在演示中的过滤器框中键入什么,网格中都不会改变。

So for example, in that tutorial , I type Wyoming in the filter under the State header, I hope to see that only the first row of the data is showing in the grid, however what actually happening is that I can still see all of the rows. 因此,例如,在该教程中 ,我在State标题下的过滤器中键入Wyoming,希望看到网格中仅显示数据的第一行,但是实际上发生的是,我仍然可以看到所有行。

Screenshot: 截图: 在此处输入图片说明

Any idea on how to fix this? 关于如何解决此问题的任何想法?

I think I fixed this today. 我想我今天已经解决了。 The filtering was actually working - the detail rows were filtered out. 过滤实际上是有效的-详细信息行已被过滤掉。 But the header rows were still being inserted, and the data being aggregated, even though the rows weren't visible. 但是标题行仍在插入,并且数据被聚合,即使这些行不可见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM