浏览 445 次
|
该帖已经被评为新手帖
|
|
|---|---|
| 作者 | 正文 |
|
时间:2008-04-30
就拿了example里的例子出来试验了下:
/*
* Ext JS Library 2.0.1
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext.onReady(function(){
var tree = new Ext.tree.ColumnTree({
//el:'tree-ct',
width:552,
autoHeight:true,
rootVisible:false,
autoScroll:true,
title: 'Example Tasks',
columns:[{
header:'Task',
width:350,
dataIndex:'task'
},{
header:'Duration',
width:100,
dataIndex:'duration'
},{
header:'Assigned To',
width:100,
dataIndex:'user'
}],
loader: new Ext.tree.TreeLoader({
dataUrl:'column-data.json',
uiProviders:{
'col': Ext.tree.ColumnNodeUI
}
}),
root: new Ext.tree.AsyncTreeNode({
text:'Tasks'
})
});
//tree.render();
var win = new Ext.Window({
title: 'Window',
modal: true,
layout: 'fit',
width: 1022,
height: 750,
plain: true,
items: tree
});
win.show(this);
});
结果firebug报el.parentNode has no properties.(ext-all.js 14) 请问各位大虾这是咋回事。有没有前辈们玩过的? 声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
时间:2008-05-16
我的可以啊,不过有一个问题。。就是如果多个父结点下有着相同子结点信息时显示有问题
|
|
| 返回顶楼 | |
|
时间:2008-05-16
已经搞定了,win.show(this) -> win.show()
|
|
| 返回顶楼 | |
|
时间:2008-05-17
对column tree加结点做地吗?
|
|
| 返回顶楼 | |



