3.2.0

Row repaint or refresh demo, Why it is not working?, very usefull for beginners, pls help

Row repaint or refresh demo, Why it is not working?, very usefull for beginners, pls help

<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);

[b]var counter = 0;
var myUpdate = function(){
myData[2][1] = counter++;
obj.getTemplate("row", 0).refresh();
}
window.setInterval(myUpdate, 200);


</script>
</body>
</html>[/b]


The bolded portion is to make a particular row repaint or refresh. i copy the code same from this forum. if this demo works veryuseful for those who looking for row refresh. urgent pls help
desperate developer
October 18,

This topic is archived.

See also:


Back to support forum