0

I've a jqGrid v3.7.2, after hiding a column using

.jqGrid('hideCol', infoName);

and setting the grid width using

.setGridWidth(setWidth, true)

The columns do not expand to fill the table width in IE8 only.

The table width is correct. The tbody/col widths comes short.

Any way to solve this problem via CSS? Or is there another method in jqGrid to correct this problem.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
bcm
  • 5,470
  • 10
  • 59
  • 92

1 Answers1

0

Found a solution from: IE8 isn't resizing tbody or thead when a column is hidden in a table with table-layout:fixed

Simplified below for my purpose, added right after I hide the column:

// IE8 Fix, tbody not equal to table width for hidden col
            $('#tblGrid_Subject, td[aria-describedby=tblGrid_Subject]').attr('colSpan', '2');
Community
  • 1
  • 1
bcm
  • 5,470
  • 10
  • 59
  • 92