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

启动后,它会引发错误“单元格不确定”(范围516中的943)

有帮助吗?

解决方案

始终仔细检查白痴错误。 “布局”应该是“结构”。与单元格不确定的信息应该有更好的消息弹出。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top