Hi. I've a series of grid views with some columns defined inside grid/view definition.
Code:
...
initComponent: function() {
          
          this.items=[{
              xtype:"grid",
              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;
Code:
Ext.define('CS.view.GridIdAndDescColumn' ,{    
    extend: 'Ext.grid.header.Container',
    alias: 'widget.grididanddesccolumn',


    items:[
           {
            xtype:  'gridcolumn',
            header:"prova"
        },
        {
            xtype:  'gridcolumn',
            header:"prova2"
        },
    ]
    
})
but when i try to open the view i see this error in console
Uncaught TypeError: Cannot read property 'childNodes' of null