1
cell = document.createElement("td");
cell.setAttribute("colspan", "1");
cell.setAttribute("valign", "top");
var grid = new dojox.grid.DataGrid({
id: "gridID",
store: new dojo.data.ItemFileWriteStore({data: {items: []}}),
elasticView: "2",
selectionMode: "single",
autoWidth: "true",
rowCount: "4",
layout: [{field: "name", editable: "false", width:"160px", name:"fieldname"}],
query: "{itemID:'*'}"
}).placeAt(cell);
grid.startup();
row.appendChild(cell);
它啓動後向上它引發錯誤的「細胞是未定義」(943超出範圍516)道場的Datagrid拋出「Cell是未定義」