简体   繁体   English

ExtJS网格仅作为显示

[英]ExtJS grid as display only

Ext.grid.GridPanel is very cool grid, advanced with very powerfull features, sorting, resizeing, etc... Ext.grid.GridPanel是非常酷的网格,具有非常强大的功能,排序,调整大小等高级功能。

If I want to use it as nice looking output for my data (nice looking TABLE) there is pleny of unnessecery features, what I need to turn off, disable etc, 如果我想将其用作数据的美观输出(很好看的TABLE),则有很多不必要的功能,需要关闭,禁用等功能,

I wonder if is it a ExtJS class that look like a grid, got store inside - so can be loaded, updated.. 我想知道它是否是一个ExtJS类,它看起来像一个网格,已经存储在里面-可以加载,更新。

I've had a lot of performance problems with ExtJS Grid, so my solution was to switch to ListView. 我在ExtJS Grid上遇到很多性能问题,因此我的解决方案是切换到ListView。 It is a lot simpler, doesn't have that many features, but still supports data stores. 它简单得多,没有那么多功能,但仍支持数据存储。

You can use Ext.extend to create a GridPanel which has defaults exactly as you'd like them: 您可以使用Ext.extend创建一个GridPanel,其默认设置完全符合您的要求:

ConfiguredPanel = Ext.extend(Ext.grid.GridPanel, {
  constructor: function(cfg) {
    cfg = Ext.applyIf(cfg || {}, {
      // defaults
    });
  }
});

The winner isssssssss... 优胜者isssssssss ...

Ext.list.ListView ! Ext.list.ListView!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM