How to Change Row data without refresh the grid ?, am using 2.0.1
Pls make the following simple small code to work.
<html>
<head>
<script src="runtime/lib/aw.js"></script>
<link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<style>
</style>
<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);
document.write(obj);
// Following source code copy from your forum, the following set of code
// actually just keep increse some value in one cell is seems, pls make
// it work. am using the latest version 2.0.2
var counter = 0;
var myUpdate = function(){
myData[2][1] = counter++;
obj.getRowTemplate(2).refresh();
}
window.setInterval(myUpdate, 200);
// ****************************************
</script>
</body>
</html>
desperate developer
October 18,