3.2.0

GRID FireFox Sorting Issue


When you click on a GRID column to sort the table, it "magically" moves up by half its height. I tried using the simple example from your site. If you click on the horizontal scroll bar, it moves back to its original position with sorted column. If you set the height and width of GRID big enough, the GRID completely moves out of the screen and because the scroll bars are not displayed you pretty much LOSE YOUR GRID!!!

THIS ONLY HAPPENS IN FIREFOX - IE SEEMS TO WORK FINE!

Here's my code for "test1.html". Remove setSize() to see how the GRID comes back to its original position.

<html>
<head>
    <!-- include AW stylesheet and script -->
    <link href="ActiveWidgets/runtime/styles/xp/aw.css" rel="stylesheet" type="text/css">
    <script src="ActiveWidgets/runtime/lib/aw.js"></script>

<body>
<script>

var myCells = [
 ["MSFT","Microsoft Corporation", "314,571.156", "32,187.000"],
 ["ORCL", "Oracle Corporation", "62,615.266", "9,519.000"],
 ["SAP", "SAP AG (ADR)", "40,986.328", "8,296.420"],
 ["CA", "Computer Associates Inter", "15,606.335", "3,164.000"],
 ["ERTS", "Electronic Arts Inc.", "14,490.895", "2,503.727"]
];

var obj = new AW.UI.Grid;

obj.setCellText(myCells);
obj.setColumnCount(4);
obj.setRowCount(5);

// *** remove this and test again ***
obj.setSize(1200,560);

document.write(obj);

</script>
</body></html>



Also tested with IFRAME in test2.html:

<html>
<body>

<IFRAME src="test1.html" width=1300 height=1000></IFRAME>

</body>
</html>


Any help will be greatly appreciated!!!!!!!

Harshit
September 28,
We have found a solution to our problem. If you use the extended control instead of the base control as shown below, the GRID re-positions itself when clicked. Sroll bars briefly appear but corrects itself!

var obj = new AW.Grid.Extended;


Looks like there is a fix and the code needs to be moved/copied to the base control.

Harshit
September 28,

This topic is archived.

See also:


Back to support forum