Closed jkirkell closed 13 years ago
I checked the issue on wijmo 1.0.0, everything looks good.
To verify I used samples\grid\datasources.html having set column widths, like shown below:
$("#demo-remote").wijgrid({ columns: [ { width: "10%" }, { width: "10%" }, { width: "10%" }, { width: "70%" } ], .... });
Could you check 1.0.0 on your side?
I am seeing the same issue. One other note is that if I do not specify the column sizes through the column array, the grid grows and shrinks when the page does. If I specify the width in percent, it still starts out small until I click the header then the grid adjusts but it must be calculating a px width for the columns based on the available width. When the page is re-sized, the grid remains fixed to the set pixel width.
Okay, we will look into it further.
I am going to tear my code out from where it is and try a few things too. It very well may be something in my styles are playing havoc with the formatting.
with 0.9.0 percentage column appears to work to a point. Basically, if I build everything dynamically, the grid is rendered small, but when I click on a header column (requires allowSorting set to true) then the grid is resized to be the proper width. This only seems to happen when the grid is using dynamic data from a wijdatasource. If I build a table with percentage columns and have everything built, then call wijgrid, the grid is sized properly by default. I can send some screen shots if you need it.
Thanks, Jeff