When using Easyui GridView, if you want the width of the Gridview to be the same as the width of the window, you only need to set fitColumns: true
After this is implemented, if the window is resized, the width of the gridview will not change. We just need to do it ourselves. Add a resize event to the window and let the gridview change the width in the event callback method: