PDA

View Full Version : Dynamic Width Change of Column Names in a Grid



abhi.ece
15 Feb 2012, 2:35 AM
How can we dynamically change column name widths of different data index in a Grid? Actually I want to change the widths of column names on change of window size dynamically. I have got one event Ext.EventManager.onWindowResize where I can put the code for column width change. So please let me know how it is possible dynamically. Thanks in advance.

mitchellsimoens
15 Feb 2012, 6:04 AM
You can use flex on your columns so that when resize happens, it will keep the column portions stay the same. Other than that, you can use setWidth on the column itself.