3.2.0

Column resize bug for grid in table - RC1

Hi Alex,

I know this was discussed before in one of the beta versions. It is still a problem in RC1.

If the grid is in a table then the grid is not redrawn automatically after changing the column width. I have to move the mouse over each row before it will refresh on its own. I believe I can hook into the event and do a obj.refresh as a workaround if needed.

BTW, in the example below resizing between cols ONE and TWO works but between any others has the problem.

<HTML>
<HEAD>
  <script src="runtime/lib/aw.js"></script>
  <link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
</HEAD>

<BODY>
  <script>
    var myData = [[1,2,3,4,5,6,7],[1,2,3,4,5,6,7],[1,2,3,4,5,6,7],[1,2,3,4,5,6,7],[1,2,3,4,5,6,7]];
    var myHeaders = ["One","Two","Three","Four","Five","Six", "Seven"];

    var grid = new AW.Grid.Extended;
    grid.setId("myGrid");  // necessary for CSS rules
    grid.setCellText(myData);  // 2-dimensional js array
    grid.setHeaderText(myHeaders); // js array (see top of this page)
    grid.setColumnCount(7);
    grid.setRowCount(5);
  </script>

  <table>
    <tr><td>
      <script>
        document.write(grid);
      </script>
    </td></tr>
  </TABLE>

</BODY>
</HTML>


Also, in case you missed it I'm having a problem with formatting numbers here:
http://www.activewidgets.com/javascript.forum.11471.2/currency-format-not-working.html

Rob Francis
February 6,
Opps, I see:

<table style="table-layout:fixed">


helps! That works for me.

Please comment on the number format issue in case I'm doing something wrong on it
http://www.activewidgets.com/javascript.forum.11471.2/currency-format-not-working.html
Rob Francis
February 6,

This topic is archived.

See also:


Back to support forum