angular-ui/ui-grid

Noticeable delay when grid columns are altered on large dataset

Open

#4 492 ouverte le 8 oct. 2015

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (2 496 forks)batch import
help wantedseverity: performance

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Sample showing a grid with a large dataset: http://plnkr.co/edit/VCjtmkSjEMC59BFGmyT7?p=preview

Click the button at the top to cycle the grid columns being set to include only two, three then four fields. I notice around a 300ms delay until the grid redraws to show the changed headers. This makes the interface feel laggy. Scrolling through the dataset once the headers have updated is smooth however.

On a smaller dataset (comment out the "data = data.concat(data);" line), the rendering delay isn't as noticeable.

Are there any workarounds for this?

Thanks for the great library!

Guide contributeur