Add row in a blanck grid
Assuming this code:
var myData = []; //my model
var myColumns = ["Ticker", "Company Name", "Market Cap.", "$ Sales"];
var obj = new AW.UI.Grid;
obj.setCellText(myData);//i bind my model to my grid
document.write(obj); //Generate the grid - empty
//As you can see i'm trying to add a row in the empty grid
myData["666"] = ["ERTS", "Electronic Arts", "14,490.895", "2,503.727"];
obj.addRow("666");
//adding or removing this line does not help
obj.setCellText(myData);
The result is that is impossible to add a row then...
It does not seem logical that if the model is empty and the grid already generated that updatding the model does not impact the grid
Thanks
var myData = []; //my model
var myColumns = ["Ticker", "Company Name", "Market Cap.", "$ Sales"];
var obj = new AW.UI.Grid;
obj.setCellText(myData);//i bind my model to my grid
document.write(obj); //Generate the grid - empty
//As you can see i'm trying to add a row in the empty grid
myData["666"] = ["ERTS", "Electronic Arts", "14,490.895", "2,503.727"];
obj.addRow("666");
//adding or removing this line does not help
obj.setCellText(myData);
The result is that is impossible to add a row then...
It does not seem logical that if the model is empty and the grid already generated that updatding the model does not impact the grid
Thanks
Paul
December 2,