PDA

View Full Version : How to autosize column in ext 3.0



babu
8 Mar 2010, 2:54 AM
Hi all,

Am using ext 3.0 for Grid.I need to autosize column while it render... can u guys please help me to fix..?


thanks
Babu

VinylFox
8 Mar 2010, 3:35 AM
You will need to give the column you want expanded an id in the column model.

Then set autoExpandColumn to that id.

http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.GridPanel&member=autoExpandColumn

babu
8 Mar 2010, 5:35 AM
I have tried..but it not working.....Can u give me a some working example...?

VinylFox
8 Mar 2010, 6:11 AM
Post an example of your code and I can take a look to see whats wrong. Im not going to write your code for you.

VinylFox
8 Mar 2010, 6:14 AM
Look at lines 70 & 73 of the following example...

http://code.google.com/p/learning-extjs-book-samples/source/browse/trunk/Chapter5/2_cell_rendering.php