Posted 11 August 2020, 2:10 am EST
Hi,
I have a flexgrid which contains ~20,000 rows. Initially the filter was not showing all the values so i bumped up the maxValue count to be “grid.itemsSource.totalItemCount”.
Issue is : When i filter some items and hit apply it takes more time to filter the grid. Below is the snapshot of my code. I also tested this with small set of data and it works fine. But with larger set it tends to take more time (like 3-4 secs) to filter.
May i know, if there is any way to improve this filtering efficiency ?
init(s: wjcGrid.FlexGrid) {
let count = s.itemsSource.totalItemCount;
this.filter.getColumnFilter('vendor_name').valueFilter.maxValues = count;
this.filter.getColumnFilter('consolidated_vendor').valueFilter.maxValues = count;
this.filter.filterApplied.addHandler((s, e) => {
let count = s.grid.itemsSource.totalItemCount;
this.filter.getColumnFilter('vendor_name').valueFilter.maxValues = count;
this.filter.getColumnFilter('consolidated_vendor').valueFilter.maxValues = count;
s.grid.select(new wjcGrid.CellRange(0, 0), true);
});
}
Thanks,
Sravya.