javascriptextjsextjs-grid

Ext JS, change grid column configs default values globally


Ext.grid.column.Column class has following configs:

Is it possible to change default values of this configs globally for all grid columns in my application ?

Any help appreciated.


Solution

  • yes, using Ext.override......

    http://docs.sencha.com/extjs/5.1/5.1.0-apidocs/#!/api/Ext-method-override

    example...

    Ext.override(Ext.grid.column.Column, {
     draggable: true,
     sortable: true,
     menuDisabled: false
    });