ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

ColumnFiltering is slow

Open angular-git-user opened this issue 10 years ago • 9 comments

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

angular-git-user avatar Mar 21 '16 12:03 angular-git-user

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 );

miah-al avatar Mar 23 '16 19:03 miah-al

Can you reproduce the problem in plnkr?

stevenlius avatar Mar 24 '16 13:03 stevenlius

http://plnkr.co/edit/gSIS9zXMPhPPDDcOEi59

Even if you reduce the number of columns the behavior is similar..

miah-al avatar Mar 25 '16 15:03 miah-al

@alam123, I removed columnVirtualizationThreshold: 100 from your gridOptions in the plnkr and the filtering became significantly faster.

murtazajafferji avatar Apr 01 '16 21:04 murtazajafferji

I think lot of unnecessary events are being fired

miah-al avatar Apr 25 '16 17:04 miah-al

http://plnkr.co/edit/gSIS9zXMPhPPDDcOEi59

just tested with the latest grid. Still super laggy,

miah-al avatar Dec 12 '16 02:12 miah-al

same problem, any news?

thorvx avatar Apr 18 '17 21:04 thorvx

same problem

phyzalis avatar Sep 14 '18 16:09 phyzalis

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

orneryd avatar Aug 12 '26 23:08 orneryd