yanyiping 2012-12-17
TreeGrid:节点拖拽
参考示例:TreeGrid:节点拖拽
创建代码
<divid="treegrid1"class="mini-treegrid"style="width:600px;height:280px;"
url="../data/tasks.txt"showTreeIcon="true"
treeColumn="taskname"idField="UID"parentField="ParentTaskUID"resultAsTree="false"
allowDrag="true"allowDrop="true">
<divproperty="columns">
<divtype="indexcolumn"></div>
<divname="taskname"field="Name"width="200">任务名称</div>
<divfield="Duration"width="100">工期</div>
<divfield="Start"width="100"dateFormat="yyyy-MM-dd">开始日期</div>
<divfield="Finish"width="100"dateFormat="yyyy-MM-dd">完成日期</div>
</div>
</div>
allowDrag:允许拖拽节点
allowDrop:允许投放节点