PDA

View Full Version : [CLOSED-549][3.1/3.1.1] TreeGrid: rootVisible



nextdigital
17 Dec 2009, 8:26 PM
"rootVisible: true" breaks the TreeGrid component.

And a small feature suggestion: currently it is impossible to drag a node to the root (unless root is visible), it would be great if dragging a node to any blank space in the TreeGrid places it in the root.



Ext.onReady(function(){
var treegrid = new Ext.ux.tree.TreeGrid({
rootVisible: true,
width: 500,
height: 300,
renderTo: Ext.getBody(),
enableDD: true,
columns:[{
id: 'name',
header: 'List Names',
width: 200,
sortable: true,
dataIndex: 'name'
},{
id: 'recipients',
header: 'Recipients',
width: 75,
sortable: true,
dataIndex: 'recipients'
},{
id: 'created',
header: 'Created',
width: 75,
sortable: true,
dataIndex: 'created'
},{
id: 'sent',
header: 'Sent',
width: 75,
sortable: true,
dataIndex: 'sent'
}]
});

var json = [{
"errors": 0,
"name": "A Folder",
"recipients": 0,
"created": 1260287731,
"duplicates": 0,
"unsubscribed": 0,
"active": 0,
"iconCls": "icon-list",
"bounced": 0,
"sent": 0,
"expanded": true,
"children": [{
"errors": 0,
"leaf": true,
"name": "A child List",
"recipients": 0,
"created": 1260287731,
"duplicates": 0,
"unsubscribed": 0,
"active": 0,
"iconCls": "icon-list",
"bounced": 0,
"sent": 0
}]
},{
"errors":0,
"name":"Another Folder",
"recipients":0,
"created":1260287731,
"duplicates":0,
"unsubscribed":0,
"active":0,
"iconCls":"icon-list",
"bounced":0,
"sent":0,
"children": []
}];

var root = new Ext.tree.AsyncTreeNode({
text: 'Lists',
draggable: false,
children: json,
id: 'root'
});
treegrid.setRootNode(root);
});

alien3d
17 Dec 2009, 11:04 PM
I also have a bug concern on tree .After a few time click at node.the page refresh itself.Testing using milf ver 2.1.For production, i had to revert to milf version 2.0 and extjs 3.03.3+ still okay.

evant
17 Dec 2009, 11:37 PM
@alien3d

Please don't hijack threads, if you have an issue, please follow the bug posting guidelines.

@nextdigital

Confirmed, thanks for the report.

nextdigital
9 Feb 2010, 5:02 PM
any news on this issue?

evant
9 Feb 2010, 5:29 PM
I've opened a ticket for this, it should be addressed in the next patch release.

evant
20 Jun 2010, 10:57 PM
After looking into this, I don't think we'll be fixing this issue. It's more of a limitation of the extension as opposed to a bug, since the default option is to have the root hidden. It's also easily worked around by providing an extra node to act as the "visible" root in the data.