silcreval
9 Feb 2011, 12:31 AM
I have a treepanel which is embedded in a tabpanel. On the first render I get the
message
targetNode is undefined
targetNode.appendChild(this.wrap); ext-all-debug.js (line 35452)
On subsequent clicks on the treepanel I get
uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLUListElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://localhost/ext/ext-all-debug.js :: anonymous :: line 35452" data: no]
There is nothing weird about the tree, and in fact it works fine in a Ext.Window
var my_tab_panel = new Ext.tree.TreePanel({
title:'User',
useArrows:true,
containerScroll:true,
autoScroll:true,
//animate:true,
//enableDD:true,
border:false,
loader: {
dataUrl: 'files.php',
baseParams: {
cmd: 'get',
path: '/'
}
},
root: {
text: '/',
draggable: false,
//expanded: true,
id:'/'
}
});
but I need to put the treepanel in a tabpanel which I do using
var tabs = new Ext.TabPanel({
defaults : {
autoScroll : true
},
activeTab: 0,
items:[
my_tab_panel
]
});
Any ideas? I've been stuck on this for a few weeks.
message
targetNode is undefined
targetNode.appendChild(this.wrap); ext-all-debug.js (line 35452)
On subsequent clicks on the treepanel I get
uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLUListElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://localhost/ext/ext-all-debug.js :: anonymous :: line 35452" data: no]
There is nothing weird about the tree, and in fact it works fine in a Ext.Window
var my_tab_panel = new Ext.tree.TreePanel({
title:'User',
useArrows:true,
containerScroll:true,
autoScroll:true,
//animate:true,
//enableDD:true,
border:false,
loader: {
dataUrl: 'files.php',
baseParams: {
cmd: 'get',
path: '/'
}
},
root: {
text: '/',
draggable: false,
//expanded: true,
id:'/'
}
});
but I need to put the treepanel in a tabpanel which I do using
var tabs = new Ext.TabPanel({
defaults : {
autoScroll : true
},
activeTab: 0,
items:[
my_tab_panel
]
});
Any ideas? I've been stuck on this for a few weeks.