Alpha 2 treepanel rootVisible:false bug - Ext JS

as above,

when declaring treepanel, if u set rootVisible:false, gives problems.....

Regards
Reply With Quote
  # 2  
Old 02-25-2007, 02:07 PM
Default What problem exactly?

Hi,

I'm using treepanel through all the series from 0.33 to 1.0a2rev3 without problems in IE6, FF2, Opera9. How your problem demonstrate?

EDIT: of course i'm using it with rootVisible:false...
Reply With Quote
  # 3  
Old 02-25-2007, 02:22 PM
Default

var tree = new Tree.TreePanel('tree-div', {
        animate:true, 
        loader: new Tree.TreeLoader({dataUrl:'data.php'}),
        enableDD:false,
        containerScroll: true,
       rootVisible:false
    });
also have another problem (worked in alpha 1, not now:

tree.on('load', function(){ 
		var f = tree.getNodeById("fechas");
		if(f) {f.expand()};
	});
above doesn?t work either...... downloaded alpha2 10 min ago...

Thanks and Regards
Reply With Quote
  # 4  
Old 02-25-2007, 02:29 PM
Default Maybe something with the loader

Possibly it is something with the

loader: new Tree.TreeLoader({dataUrl:'data.php'}),
then. I'm not using Exts loaders or "loadxml" calls... Constructing the treepanel programatically using _menuNode.appendChild works even with the root hidden.
Reply With Quote
  # 5  
Old 02-25-2007, 02:40 PM
Default

noting wrong with the loader....

if u try with Jack example, add
rootVisible:false
into reorder.html example, it will break....

Regards
Reply With Quote
  # 6  
Old 02-25-2007, 02:56 PM
Default loader?

I think the example has a loader too / that said I was thinking not your loader has a problem but treeloader as general has a problem - which I can't confirm.

But tree/treepanel without an "loader" works without root visible very well for me and never had a bug in these fast-changing times
Reply With Quote
  # 7  
Old 02-25-2007, 03:23 PM
Default

The image organizer uses rootVisible:false and works fine. If you want help, you need to include more info than "it's broken".
Reply With Quote
  # 8  
Old 02-25-2007, 03:30 PM
Default

Jack,

in your example reorder.js just replace with following, and you'll see there is a prob...

var tree = new Tree.TreePanel('tree-div', {
        animate:true, 
        loader: new Tree.TreeLoader({dataUrl:'get-nodes.php'}),
        enableDD:true,
        containerScroll: true,
rootVisible:false
    });
Reply With Quote
  # 9  
Old 02-26-2007, 02:26 AM
Default

Hi Jack.

I have the same problem.
If I set rootVisible:false it break, but with rootVisible:true it works.

This is from Firebug:
Quote:
this.dom has no properties
_6("x-tree-node-loading")ext-all.js (line 20)
_6("x-tree-node-loading")ext-all.js (line 20)
TreeNodeUI("x-tree-node-loading")ext-all.js (line 134)
TreeNodeUI()ext-all.js (line 134)
AsyncTreeNode(false, false, undefined)ext-all.js (line 132)
TreeNode(undefined)ext-all.js (line 130)
TreePanel()ext-all.js (line 126)
(no name)()TreeOutline (line 39)
Observable()ext-all.js (line 16)
EventManager()ext-all.js (line 18 )
[Break on this error] (function(){var D=Ext.lib.Dom;var E=Ext.lib.Event;var A=Ext.lib.Anim;var _4={};v...
// Johan
Reply With Quote
  # 10  
Old 02-26-2007, 08:36 AM
Default

Thanks Jack...

Works great in revision 5.
Reply With Quote
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值