Update a single cell?
Awesome control!
Can a single cell be updated without repainting all rows and columns?
Steve
Can a single cell be updated without repainting all rows and columns?
Steve
December 18,
<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);
var myAction = function(obj){
var i = obj.getProperty("row/index");
var j = obj.getProperty("column/index");
myCells[i][j] = "[new data]";
obj.refresh();
}
obj.setAction("click", myAction);
</script>
</body>
</html>
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021