3.2.0

2 Columns 100% problem

I have a 2 column grid, the first column is about 100px, the second column I need to be 100% to span the width of the grid when the window is resized. The grid itself resizes, but when I add

.aw-column-1 {width: 100%;}

The second column that I am trying to resize is not showing the text and a large horizonal scroll like is in place with what looks like a extremely large cell w/o text. It I define the size in px it works fine, but I really need %.

Anyone have ideas?
Tony
December 31,
I would use % for both columns, that is the easiest solution. Use 25% & 75%. Sure it might make the first column large in some instances, but it will save you headaches in the long run.
Jim Hunter
January 2,
The only problem is my first column I am using

.aw-column-0 {width:0px;display: none!important;}

I am using this to hold data, but not be displayed as it has indexes to the DB for onclick actions.
Tony
January 2,
Instead of making the column width0px; use the following to prevent it from rendering, it will be available but user doesnt see it

obj.setColumnValues([0,1]);

only columns with index=0 and 1 will be showen. The rest will be hidden.
yamyam
January 2,
obj.setColumnIndices([0, 2, 3, 4]); // hide column 1
January 2,
Hmm. None of these have worked for me yet. Still baffled, and still hacking at it.
Tony
January 3,
Nvrmind, fixed it.
Tony
January 3,
What was your solution? Post it so that others can learn from it.
Jim Hunter
January 3,
The problem was that the actual obj was not sized right. I could not see it because I was using it inside another div tag with overflow hidden.

So when I had my object

obj.setId("list");


In my style I was using

#list .aw-control-grid { width: 200px; }


But I needed to use

#list { width: 200px; }


This was causing the entire contol to be sized larger than I wanted. So the column was stretching. I could not see the column selected area as I had turned this off, the actual column was right, but the row expanded to the size of the object.
Tony
January 3,

This topic is archived.

See also:


Back to support forum