TreeGrid:節點拖拽
參考示例: TreeGrid:節點拖拽
創建代碼
<p id="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">
<p property="columns">
<p type="indexcolumn"></p>
<p name="taskname" field="Name" width="200">任務名稱</p>
<p field="Duration" width="100">工期</p>
<p field="Start" width="100" dateFormat="yyyy-MM-dd">開始日期</p>
<p field="Finish" width="100" dateFormat="yyyy-MM-dd">完成日期</p>
</p>
</p>
allowDrag:允許拖拽節點
allowDrop:允許投放節點