Thank you for the provided link.
The demosntrated appraoch calls autoFitColumns method each time when dataStateChange event is emitted. However once the columns are reisized as per the method (e.g. in ngAfterViewInit hook) calling it on state change can be omitted:
Another approach is to handle the filterChange (instead dataStateChange) event and to skip calling the the method only when fitlering is used.
In case of further questions do not hesitate to write back.
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).