There is a private function expandToFitthat can be used for a mesh header container object.
Try something similar in the object Ext.grid.column.Columnafter all the records are loaded into the grid, for example, in the event viewReady Ext.grid.Panel:
column.ownerCt.expandToFit(column);
Go through the columns and call the above statement for each column that you want to expand.
source
share