ag-grid / ag-grid

The best JavaScript Data Table for building Enterprise Applications. Supports React / Angular / Vue / Plain JavaScript.
http://www.ag-grid.com
Other
12.17k stars 1.82k forks source link

How to prevent the delay in adjusting the width of grid ? #8117

Open Manuvk11 opened 1 month ago

Manuvk11 commented 1 month ago

Description of the Issue : The grid width is resizing automatically to fit the screen and it takes some time to revert back to the normal width. This delay in adjusting the width is causing issues in the user experience. I need to prevent this delay and have the width adjust immediately.

Steps to Reproduce Initialize an ag-Grid instance with a set width. Resize the browser window or the grid container to trigger the grid's width adjustment. Observe the delay before the grid width returns to the normal state.

Expected Behavior The grid should adjust its width immediately without any noticeable delay when the screen or grid container is resized.

Actual Behavior There is a noticeable delay before the grid width reverts to the normal state after the screen or grid container is resized.

Environment ag-grid-react version: 29.1.0 ag-grid-community version: 29.1.0 React version: 17.0.2

aggridResize image

As you can see the 1st picture the width is not immediately adjusted , in the second picture the width is adjusted according to the grid options

How to overcome this noticeable delay and have a smooth user experience ?

AG-Zoheil commented 3 weeks ago

Hi

Thank you for reporting this.

We'd be happy to look into this, but the most efficient way for us to do so would be for you to provide a live example reproducing the issue.

Please send us a live plunker sample which shows the issue. You can use one of the examples from our website as a starting point. Do let us know if you need further guidance on this.

We're looking forward to your response.

Kind regards, Zoheil