We are seeing that sometimes the columns in our grid are resized and sometimes they are not. Is it only done on the first initialization? We have a search screen and if the user changes their filter and clicks apply when the grid is updated with the new search results the columns are not auto-resized which makes me think it's only being done on the first initialization. Can you confirm?
Hi Tammy,
Thank you for posting in our forums!
Yes, the auto-sizing is applied only on initialization of the igGrid for performance reasons. The auto-sizing is expensive operation and we don't want to automatically invoke it elsewhere, because it will affect the rendering performance. Instead, we exposed the autoSizeColumns method for you to call when you need to resize the columns.
If you need the columns to resize after initialization, you can call the autoSizeColumns method on the igGrid.
If you have any further questions or concerns with this, please let me know.