Posted 31 August 2020, 5:34 pm EST
Dear Support,
We discovered some serious performance issues when using the angular wrapper of FlexGrid class, which slows down our entire application. Massive Angular change detection cycles are triggered in various situations:
- When is firstly loaded, hundres of CD cyles are executed.
- When you drag column borders to resize columns, thousands of CD cycles are continuously triggered.
- Sorting columns also triggers CDs many times.
- Other situations when you update FlexGrid layout.
I have created a sample to demonstrate this issue:
https://stackblitz.com/edit/angular-fp3b47
Note this problem does not exist if we directly call pure javascript APIs (jQuery way):
this.jqueryFlexGrid = new wjcGrid.FlexGrid(document.getElementById('jqueryGrid'), {itemsSource: this.data});