View Full Version : How to auto resize columns of Ext.grid.Panel depending on content

Bonsai media
25 Apr 2012, 6:07 AM
Thread title pretty much says all: How can I auto resize the colums of a Ext.grid.Panel so that all the contents of that column are fully displayed? Practically, when I want to do is the same as when you double click on the line/separator of 2 columns, but programmatically instead.

25 Apr 2012, 10:26 AM
Are you referring to the width? The best option would be to set the column to Flex: 1 to make grow with the grid.
You can then wrap the text to another rows if it still does not fit or use ellipsis() to truncate if needed.