PDA

View Full Version : grid columns need to occupy 100%



lal
23 Jan 2009, 8:01 AM
Hi experts,
I wonder why there is no way to specify the width of colum as %.
Is there any way to show the gird colums occupy full size of my contentpanel..
for eg: if my contentpanel has width of 800px , then if i have 2 column grid occupy 400 each dynamically. right now my XML grid occupy a few space ... i need to expand the colum according to the length of grid. is there any way.. Pls fine the attachments.. i need to change the second gif.
thanks in advance

gslender
23 Jan 2009, 1:47 PM
try Grid.setAutoExpandColumn

kolli
26 Jan 2009, 5:32 AM
I dont think there is any automatic way to distribute the complete width equally between all the columns. You should be doing that externally by looking up the grid size and then resetting the width of the columns dynamically

Jose Jeria
31 Jan 2009, 6:13 AM
This feature would be very nice to have...

sjzaluk
31 Jan 2009, 8:53 AM
I agree. This should be added.