View Full Version : Create a custom set of frid colum

American horizon
2 Aug 2016, 7:27 AM
Hi. I've a series of grid views with some columns defined inside grid/view definition.

initComponent: function() {

store: Ext.create("CS.store.QualificheLicenze"),
height: 400,
columns: [
{header: 'Licenza', dataIndex: 'idLicenza', flex: 0.2, hidden:true },

In this grids i need to attach a custom set of columns besides those i define in the view itself.

I want to create a custom set of columns such an external component that i can attach to the grid "items" attribute.
How can i create this component?

I tried this;

Ext.define('CS.view.GridIdAndDescColumn' ,{
extend: 'Ext.grid.header.Container',
alias: 'widget.grididanddesccolumn',

xtype: 'gridcolumn',
xtype: 'gridcolumn',


but when i try to open the view i see this error in console
Uncaught TypeError: Cannot read property 'childNodes' of null