Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>ExtJS has a nice plugin for this: <a href="http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.tree.plugin.TreeViewDragDrop" rel="nofollow">http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.tree.plugin.TreeViewDragDrop</a> Read the configs, they're quite important and useful</p> <p>Just put this in the code of your treepanel:</p> <pre><code> viewConfig: { plugins: { ptype: 'treeviewdragdrop' } }, </code></pre> <p>Also, here is a working fiddle I just put some random data in the store, didn't want to format all of yours</p> <pre><code>Ext.onReady(function () { Ext.define('Task', { extend: 'Ext.data.Model', fields: [ { name: 'task', type: 'string' }, { name: 'assignedto', type: 'string' } ] }); var store = Ext.create('Ext.data.TreeStore', { model: 'Task', folderSort: false, root: { expanded: true, children: [ { task: 'Child 1', assignedto: 'me', leaf: true }, { task: 'Child 2', assignedto: 'me', expanded: true, children: [ { task: 'GrandChild 1', assignedto: 'you', leaf: true } ] }, { task: 'Child 3', assignedto: 'me', expanded: true, children: [ { task: 'GrandChild 2', assignedto: 'you', leaf: true } ] }, ] } }); var tree = Ext.create('Ext.tree.Panel', { viewConfig: { plugins: { ptype: 'treeviewdragdrop' } }, title: 'Core Team Projects', width: 500, height: 300, renderTo: Ext.getBody(), collapsible: true, useArrows: true, rootVisible: false, store: store, multiSelect: true, singleExpand: true, columns: [{ xtype: 'treecolumn', text: 'Task', flex: 2, sortable: true, dataIndex: 'task' }, { text: 'Assigned To', flex: 1, dataIndex: 'assignedto', sortable: true }] }); }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload