Skip to content

[Bug]: Searching with cell merging is rebuilding the search cache unnessecary #16294

@mddragnev

Description

@mddragnev

Description

When searching and moving trough the search results with findNext the grid rebuilds the search cache unnecessary. This, for a small sample, is not a problem. However, if you have a million records, it freezes as the time needed to build that cache becomes more than 1 second.

  • igniteui-angular version:
  • browser:

Steps to reproduce

  1. Open the merging dev sample
  2. Remove the paging from the base grid sample
  3. Click on the first row so that the first germany cell unmerges
  4. Add a console.log inside the rebuildMatchCache method in grid-base.directive.ts (this method is called when the search text has changed to rebuild the cache used for moving between search results)
  5. Type germany in the search bar
  6. Start moving forward with the next icon

NOTE: Please note that if you do not unmerge the first Germany cell, it works correct.

Result

See that there are couple of calls to the rebuildMatchCache method that should not be there.

Expected result

The search cache should not be rebuilt when moving between search result with findNext

Attachments

merging-cache.mov

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions