支持动态过滤的GWT表 [英] GWT Table that supports dynamic filtering
问题描述
这个问题类似于 GWT表,支持排序,滚动和过滤
然而我更喜欢开源,我正在寻找精彩的表现。我想要一个在行上执行动态过滤的好方法。
SmartGWT的自适应滤波器看起来很有趣。 http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_featured_category
任何人都有这方面的经验吗?
Google Web Toolkit Incubator 提供了一系列表格供您选择:
- BulkTableRenderers 批量渲染表格(比普通渲染快10倍)。
- 滚动表格,页脚和标题固定。
- 分页表,表格可以通过任意数据集进行分页。
- 可编辑表格,包含常用单元格编辑器。 a href =http://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/table/client/PagingScrollTable.html =nofollow noreferrer>
PagingScrollTable
(演示)似乎是创建您自己的定制解决方案的最佳基础。要为它添加过滤器,您可能需要修改底层=nofollow noreferrer> TableModel
(或其中一个子类,如MutableTableModel
)。This question is similar to GWT Table that supports sorting, scrolling and filtering
However I would prefer open source and I am looking for snappy performance. I want a good way to perform dynamic filtering on rows.
SmartGWT's adaptive filter looks interesting. http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_featured_category
Anyone have any experience with this?
解决方案Google Web Toolkit Incubator has a range of tables to select from:
- BulkTableRenderers Bulk rendering of tables(up to 10x faster then normal rendering).
- Scrolling tables, where the footer and header are fixed.
- Paging tables, where the table can page through arbitrary data sets.
- Editable tables, complete with common cell editors.
From those,
PagingScrollTable
(demo) seems the best base for creating your own custom solution. To add filtering to it, you'd probably have to tinker with the underlyingTableModel
(or one of it's subclasses, likeMutableTableModel
).这篇关于支持动态过滤的GWT表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!