hi, a BIG Bug? (III)
<script>
obj = new Active.Controls.Grid;
obj.setRowCount(DB.length);
obj.setDataText(function(i, j){return DB[i][j]);
obj.sort(0); // OH! can't refresh with sort?
document.write(obj);
function fixDB(){
DB.shift();
obj.setRowCount(DB.length);
obj.refresh();
}
</script>
<button onclick="fixDB();">OH! can't refresh with sort?</button>
obj = new Active.Controls.Grid;
obj.setRowCount(DB.length);
obj.setDataText(function(i, j){return DB[i][j]);
obj.sort(0); // OH! can't refresh with sort?
document.write(obj);
function fixDB(){
DB.shift();
obj.setRowCount(DB.length);
obj.refresh();
}
</script>
<button onclick="fixDB();">OH! can't refresh with sort?</button>
AimingZhou
December 28,