View Full Version : [CLOSED] TreeColumn not draggable

5 Jan 2014, 1:57 PM
Why is tree column defined as not draggable?

Ext.define('Ext.tree.Column', {
extend: Ext.grid.column.Column ,
alias: 'widget.treecolumn',

tdCls: Ext.baseCSSPrefix + 'grid-cell-treecolumn',

autoLock: true,
lockable: false,
draggable: false,
hideable: false,

5 Jan 2014, 2:07 PM
The 2 most common use cases of a tree are:

1) A tree with a single column, which means there's no dragging necessary
2) When you're using multiple columns with a tree column, typically you want the tree column at the left (or right most, if RTL) side and to stay there.

5 Jan 2014, 5:12 PM
1. Owning TablePanel should decide this, if it sees only 1 child
2. Should be up to user. End user won't move the column anyway if they agree with you on the positioning.

Please see http://www.bryntum.com/examples/gantt-latest/examples/advanced/advanced.html for one case where Tree col isn't the leftmost column.

Just "fixed" a bugreport we received on the Name column not being draggable.

5 Jan 2014, 5:29 PM
It is up to the user. If you want to configure it to be draggable, you can still do so. As a default, I think it makes more sense for that not to be the case.