一:延时加载
定义一个BottomTree
Ext.define('LP.view.tree.BottomTree', {
extend : 'Ext.tree.Panel',
alias : 'widget.BottomTree',
dock : 'bottom',
id:"BottomTree",
rootVisible : false,
store : 'LP.store.tree.BottomTreeStore',
initComponent : function() {
var me = this;
Ext.applyIf(me, {
viewConfig : {
}
});
me.callParent(arguments);
}
});
“rootVisible : false,”-----根节点不可见
store : 'LP.store.tree.BottomTreeStore',----store
定义tree的store
Ext.define('LP.store.tree.BottomTreeStore', {
extend : 'Ext.data.TreeStore',
proxy : {
type : 'ajax',
url : 'treelayou!initTree.action?random='
+ new Date().getTime()
},
root : {
id : '-2',
expanded : true
},
fields : [{
name : 'text',
type : 'string'
}, {
name : 'count',
type : 'int'
}, {
name : 'id',
type : 'string'
}, {
name : 'leaf',
type : 'boolean'
}, {
name : 'patentId',
type : 'string'
}
],
folderSort : true,
sorters : [{
property : 'id',
direction : 'desc'
}],
});
其中“folderSort : true,”便是设置延时加载的
分享到:
相关推荐
Extjs的tree Extjs的tree Extjs的tree Extjs的tree Extjs的tree
extjs的tree的使用.doc
ExtJs4 Checkbox tree
ExtJs框架系列之filetree,很有用的源码
学习extjs资料,tree合成grid,很不错的视频文件,值得收藏
extjs tree 学习资料extjs tree 学习资料extjs tree 学习资料extjs tree 学习资料
Extjs的Tree和Pane配合使用使用json做tree数据交互,感谢csdn,所以我也得做些贡献,获得一些积分
ExtJs Tree
Ext各种组件的使用实例,Extjs tree+grid+form+panel 使用实例
学习extjs资料,tree合成grid,很不错的视频文件,值得收藏
最近在学习extjs tree,有两个不错的例子,希望对需要的朋友有所帮助!
这个实例是在ASP.NET环境下运行,如果要修改方案需要用到VS2008,本实例结合ExtJs与WCF交互生成WEBTree目录树结构,正在研究此方面的朋友不失为一个好资料。
ExtJs 2.2.1 tree实例,内附mysql数据文件 1. 数据节点一次性加载 2. 节点分为两个类(项目和设备) 3. 右键菜单 4. 节点增、删、改操作 ....... 后台是java struts1。 本例旨在说明extjs的tree操作,后台操作很简陋...
extjs tree 异步加载树型完整的一个web工程,自已已经试过,可用。
Extjs Tree + JSON + Struts2 示例源代码
checkbox tree extjs2checkbox tree extjs2checkbox tree extjs2checkbox tree extjs2
利用extjs框架实现的后台经典显示, tree框架,动态加载。
这几个月以来自己做extjs4开发整理下来的一些技术要点
Extjs教程源码 介: ***************第一部分基础知识**************** 第一讲: EXTJS4.0概述和HelloWorld程序 ...第三十讲: EXTJS4.0的Desktop使用讲解 本资料共包含以下附件: EXTJS4.0视频教程配套代码.zip
区别在于,远程脚本调用方式加载树节点信息使用的是WebInvokeTreeLoader,需要通过fn属性来指定用于加载数据的远程方法,并在beforeload事件处理器设置参数远程方法调用的参数值。而传统的树节点加载器是Ext.tree....