View Full Version : Set column-width to autosize from a column in a grid

21 May 2012, 9:27 AM

is there a way to set the width from last column of a grid to autosize?
I mean that first column has a width from 100px, second column 200px and last column size to the rest from center region in a border layout?

I set viewConfig: {forceFit: true} but my column doesn't expand to the space in my region.
First column contains width: 100, second column width: 200. Third column doesn't contain the width: attribute.

In the examples i can't find any solution for that.

I hope anyone can help me.

21 May 2012, 9:53 AM
Great. Thank you very much

21 May 2012, 9:53 AM
You can set flex: 1 on any column in the grid to get the effect you're after. Like you, I generally set this on the last column in the grid.