Extjs4 重写Ext.data.TreeStore的load方法,不使多次加载
来源:互联网 发布:表达爱意的网络用语 编辑:程序博客网 时间:2024/05/31 11:04
Ext.override(Ext.data.TreeStore, {
load : function(options) {
options = options || {};
options.params = options.params || {};
var me = this, node = options.node || me.tree.getRootNode(), root;
// If there is not a node it means the user hasnt defined a rootnode
// yet. In this case lets just
// create one for them.
if (!node) {
node = me.setRootNode( {
expanded : true
});
}
if (me.clearOnLoad) {
node.removeAll(false);
}
Ext.applyIf(options, {
node : node
});
options.params[me.nodeParam] = node ? node.getId() : 'root';
if (node) {
node.set('loading', true);
}
return me.callParent( [ options ]);
}
});
load : function(options) {
options = options || {};
options.params = options.params || {};
var me = this, node = options.node || me.tree.getRootNode(), root;
// If there is not a node it means the user hasnt defined a rootnode
// yet. In this case lets just
// create one for them.
if (!node) {
node = me.setRootNode( {
expanded : true
});
}
if (me.clearOnLoad) {
node.removeAll(false);
}
Ext.applyIf(options, {
node : node
});
options.params[me.nodeParam] = node ? node.getId() : 'root';
if (node) {
node.set('loading', true);
}
return me.callParent( [ options ]);
}
});
- Extjs4 重写Ext.data.TreeStore的load方法,不使多次加载
- EXTJS4 Ext.data.TreeStore model
- Ext.data.TreeStore
- 在Ext的JsonStore的load方法中使用回调callback 修改treeStore 数据
- ext treestore 自动加载问题
- 关于Ext的TreeStore会第一次默认加载的问题
- Extjs4中关于TreeStore加载数据
- Extjs4.0.7 中 TreeStore.load()出现 url undefine 错误的解决方法
- Extjs4源码解释TreeStore的autoLoad无效
- Ext.FormPanel/Ext.form.FormPanel load data/加载数据
- ExtJS4.X TreeStore,TreePanel 动态加载菜单和Tab页
- ExtJS4.2下不重复加载ext-all.js等文件的实现方式
- 前台ext treestore id重复的解决方法。
- ExtJs中 Data.TreeStore 字段的问题
- Extjs4--Ext.data.Store的多列排序和过滤器
- ExtJs4用Ext.data.ArrayStore的使用实例
- Extjs4 操作TreeStore 处理proxyAjax 获取的数据
- Extjs4 操作TreeStore 处理proxyAjax 获取的数据
- Spring使用注解的方式实现AOP
- widger处理点击事件
- Linux 查看进程和删除进程
- JSP中防止重复提交(Javascript)
- 什么是阅读?
- Extjs4 重写Ext.data.TreeStore的load方法,不使多次加载
- VC API常用函数简单例子大全
- Qt C++中的关键字explicit
- 学习笔记之内部类
- Voxel Cone Tracing based Global Illumination
- 感知机模型
- Android Design与Holo Theme详解
- 原码、反码、补码及移码的作用与区别
- 如何在Linux下用C/C++语言操作数据库sqlite3(很不错!设计编译链接等很多问题!)