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
Post a Comment