:: Forum >>

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"];
//adding or removing this line does not help

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

Friday, December 2, 2005
I have run across the exact same problem. Has anyone found a good way to code around this?
Friday, January 27, 2006

This topic is archived.

Back to support forum

Forum search