ColumnFiltering is slow
Hello,
I have used UI-Grid's built in cell filters but it takes hell lot of time to filter the data even when I have just 20 records.
<div id="grid1" ui-grid="gridCtrl.gridOptions1"
ui-grid-pagination
ui-grid-pinning
ui-grid-resize-columns
ui-grid-move-columns
ui-grid-selection
style="width: 100%; height:680px" class="ui-grid">
and i have just enabled filtering as true. Please help
I have around 300 rows. Its takes forever to filter the rows.. showColumnFooter: true, modifierKeysToMultiSelectCells: true, enableFiltering: true, enablePaginationControls: true, paginationPageSizes: [1000, 2000, 3000], paginationPageSize: 1000, enableColumnResizing: true, enablePinning: true, enableColumnReordering: true, enableGridMenu: true, enableCellEdit: false, enableCellEditOnFocus: false, saveFocus: false, saveScroll: false, saveGroupingExpandedStates: false, rowEditWaitInterval: -1, columnVirtualizationThreshold: 100, enableRowSelection: true, exporterCsvFilename: 'myFile.csv', exporterMenuPdf:false, multiSelect:true, treeRowHeaderAlwaysVisible: false,
In earlier version I got around the issue by making the following commenting out the following lines. Now this change does not help.
var dataChangeDereg = grid.registerDataChangeCallback( waitDisplay, [uiGridConstants.dataChange.COLUMN] );
$scope.$on( '$destroy', dataChangeDereg );
Can you reproduce the problem in plnkr?
http://plnkr.co/edit/gSIS9zXMPhPPDDcOEi59
Even if you reduce the number of columns the behavior is similar..
@alam123, I removed columnVirtualizationThreshold: 100 from your gridOptions in the plnkr and the filtering became significantly faster.
I think lot of unnecessary events are being fired
http://plnkr.co/edit/gSIS9zXMPhPPDDcOEi59
just tested with the latest grid. Still super laggy,
same problem, any news?
same problem
Thanks for contributing! This repository has been transferred, and we're preparing the new 5.x release. We're closing older issues and pull requests as part of the reset. Please join us on Discord to follow the work or continue the conversation: https://discord.gg/Baz4w8ZWN