我很难让我的Dojo Grid变得可编辑。我正在使用谷歌的Dojo 1.3。
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dojo/dojo.xd.js"
djConfig="parseOnLoad:true, isDebug: true"></script>
我已经获得了JSON格式的数据并且显示正确,但是我无法使用该表进行编辑,因为我目前拥有它:
<div dojoType="dojo.data.ItemFileReadStore" jsId="dataStore" data="gridData"></div>
<table id="gridNode"
class="traitsContainer"
dojoType="dojox.grid.DataGrid"
store="dataStore"
query="{}"
singleClickEdit="true"
selectable="true"
editable="true"
rowsPerPage="20">
<thead>
<tr>
<th field="field1" selectable="true"
singleClickEdit="false" editable="false">
Field 1
</th>
<th field="field2" selectable="true"
singleClickEdit="true" editable="true">
Field 2
</th>
<th field="field3" selectable="true"
singleClickEdit="true" editable="true">
Field 3
</th>
<th field="field4" selectable="true"
singleClickEdit="true" editable="true">
Field 4
</th>
<th field="field5" selectable="true"
singleClickEdit="true" editable="true">
Field 5
</th>
</tr>
</thead>
</table>
关于我做错了什么的想法?