javascript - ExtJS 4: Apply Defaults to all columns in a grid -


now extjs 4 got rid of columnmodel object, how apply default config options columns in grid?

courtesy of stevil on sencha forums:

var mygrid = ext.create('ext.grid.panel', {     //... store config, other config...,      columns: {         items: [{             header: 'kd.-nr.',             dataindex: 'id',             width: 65,             hidden: false         }, {             header: 'firma',             dataindex: 'company_name'         }],         defaults: {             sortable: true,             hidden: true,             width: 100         }     } }); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -