PDA

View Full Version : TreePanel in Internet Explorer?



netski
29 Jun 2009, 10:05 AM
Hello,

I'm having some difficulties with the TreePanel in IE6/7 using Ext3 RC2. Works, as expected, in FF of course.

In Internet Explorer when I click on the root node it always shows it as loading ...

example.html


<html>
<head>
<link type="text/css" rel="stylesheet" href="lib/ext/resources/css/ext-all.css">

<script type="text/javascript" src="lib/ext/adapter/ext-base.js"></script>
<script type="text/javascript" src="lib/ext/ext-all.js"></script>

<script type="text/javascript" src="example-data.js"></script>
<script type="text/javascript">
Ext.onReady(function() {
new Ext.Viewport( {
layout: 'fit',
items: [ {
xtype: 'treepanel',
useArrows: true,
autoScroll: true,
animate: true,
enableDD: true,
containerScroll: true,
border: false,
root: {
nodeType: 'async',
text: 'Ext JS',
draggable: false,
id: 'source',
children: Data
}
} ]
} );
} );
</script>
</head>
<body>

</body>
</html>
example-data.html


var Data = [ {
"text":"adapter",
"id":"source\/adapter",
"leaf":true,
"cls":"folder"
}, {
"text":"dd",
"id":"source\/dd",
"leaf":true,
"cls":"folder"
}, {
"text":"debug.js",
"id":"source\/debug.js",
"leaf":true,
"cls":"file"
} ]
Any suggestions?

Cheers,
Timothy

new2ext
29 Jun 2009, 1:32 PM
Do you have AsyncTreeNodes? From your example, it doesn't look like it. If not, comment out
nodeType: 'async',

netski
29 Jun 2009, 2:56 PM
Hmm, that did not fix it any other suggestions?

Cheers,
Timothy

beebop
30 Jun 2009, 7:31 AM
I had the same problem.
Found a solution in that thread (http://extjs.com/forum/showthread.php?p=344479#post344479).

netski
1 Jul 2009, 5:24 AM
@beebop good catch thanks for the heads up that worked wonders!