开发者

ExtJS grid as display only

开发者 https://www.devze.com 2023-02-05 00:20 出处:网络
Ext.grid.GridPanel is ve开发者_如何学Pythonry cool grid, advanced with very powerfull features, sorting, resizeing, etc...

Ext.grid.GridPanel is ve开发者_如何学Pythonry cool grid, advanced with very powerfull features, sorting, resizeing, etc...

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,

I wonder if is it a ExtJS class that look like a grid, got store inside - so can be loaded, updated..


I've had a lot of performance problems with ExtJS Grid, so my solution was to switch to 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:

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


The winner isssssssss...

Ext.list.ListView !

0

精彩评论

暂无评论...
验证码 换一张
取 消