ExtJS Ext.tree.Panel在重复存储负载下呈现缓慢 [英] ExtJS Ext.tree.Panel slow rendered on repeated store load
问题描述
我有一个树面板,由远程服务提供数据,并且按节点更新我的树数据.在第一个节点上,所有数据加载都呈现得相对较快,但是如果我重新加载节点数据,则子节点呈现得太慢.对于大量子元素(超过1000个),这变得至关重要.
I have a tree panel, data provided by remote service and I update my tree data by node. On first node data load all rendered relatively fast, but if I reload node data child nodes rendered too slowly. This becomes critical with large amount of child elements (1000+).
我使用ExtJS 4.2.0.663.
I use ExtJS 4.2.0.663.
As I understand its a bug in ExtJS - related sencha forum thread.
简单的小提琴来说明问题.
我试图为我的ExtJS版本找到一个修复程序,但无济于事(目前我无法升级ExtJS).
I'm trying to find a fix for my ExtJS version, but to no avail (at the moment I can not upgrade ExtJS).
有什么主意我该如何解决这个问题?
Any ideas how can I solve this problem?
我想我可以尝试比较不同版本中相关组件的代码并更改ExtJS文件,但这是一项艰巨的任务,也许有些人已经知道解决此问题的方法.
推荐答案
这是Ext4中树形面板的基本问题.我们在公司的产品上使用ExtJS,并且树形面板在将大数据作为子节点进入方面存在极端问题.
It's a basic problem of the treepanel in Ext4. We using ExtJS on our company products and treepanels have extreme problems with large data coming as child nodes.
您可以在树面板上使用bufferedRenderer插件来加快生成速度:
You can use the bufferedRenderer plugin on the treepanel to speed up the generation:
plugins: {
ptype: 'bufferedrenderer'
}
您更新的小提琴: http://jsfiddle.net/qczvjrko/5/
希望有帮助.
这篇关于ExtJS Ext.tree.Panel在重复存储负载下呈现缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!