Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2585
When is igGrid autoSizeColumns triggered
posted

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?

Parents
No Data
Reply
  • 18204
    Offline posted

    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.

Children
No Data