简体   繁体   English

按多列过滤表并刷新过滤器的值

[英]Filtering table by multiple columns and refresh filter's values

I'm using jquery.dataTables and yadcf and cannot find solution on how to restrict filters in multiple columns by selecting one. 我正在使用jquery.dataTables和yadcf,并且无法通过选择一个来找到如何限制多列中的过滤器的解决方案。

For example: https://datatables.net/examples/api/multi_filter_select.html 例如: https//datatables.net/examples/api/multi_filter_select.html

If I select name from the " Name " filter, then I still get all the possibilities in the " Positions " filter. 如果我从“ 名称 ”过滤器中选择名称,那么我仍然可以在“ 位置 ”过滤器中获得所有可能性。

What I want to get is eg based on the position selected, only names in the filter options are available which has this position. 我想得到的是例如基于所选择的位置,只有具有该位置的过滤器选项中的名称可用。

Same in the opposite way, if I select name, then only available options in the position filter should be those, which name has associated. 相反,如果我选择名称,那么只有位置过滤器中的可用选项应该是那些名称已关联的选项。

Any advice, please? 请问有什么建议吗?

{cumulative_filtering: true} ...就是答案

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

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