access list of filtered items in dataview

*爱你&永不变心* 提交于 2019-12-03 12:48:10

Use dataView.getLength() and dataView.getItem(index) to access filtered/paged/grouped data. This is the interface the grid is using to talk to the data source.

Joshua JLIVE Williams

I posted a solution here if you want to give that a look. Also for those who might be looking for something similar.

Get Filtered data from Dataview in Slickgrid

if you want to show the information that's being filtered and whats on the current page you can do something like this.

var pagingInfo = dataView.getPagingInfo();
var start = pagingInfo['pageSize'] * (pagingInfo['pageNum']);
var filteredAndPagedItems = dataView.getFilteredItems().slice(start,(start + pagingInfo['pageSize']));
console.table(filteredAndPagedItems);

something along those lines.the getFilteredItems is a custom function i added to the dataview.js. for more information view the link.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!