So I am still stuck in this..
What I've found:
When the first Dashboard is loading every defaultContent has a 'columnIndex' number. When the second dashboard is loading he doesn't have 'columnIndex', and so he put all parts on index 0.
Can't understand this behaviour.
My code:
Code:
Ext.define('MyApp.view.dashboard.DashboardPanel', {
extend: 'Ext.dashboard.Dashboard',
alias: 'widget.dashboardpanel',
requires: [
'Ext.chart.*',
'MyApp.view.dashboard.DashboardController',
'MyApp.view.dashboard.ChartConfigChart'
],
controller: 'dashboardcontroller',
maxColumns: 3,
parts: {
portlet1: {
viewTemplate: {
reference: 'portlet1',
title: '',
closable: false,
collapsible: false,
}
},
},
// defaultContent:[],
defaultContent: [{
type: 'portlet1',
columnIndex: 0,
},{
type: 'portlet1',
columnIndex: 1,
},{
type: 'portlet1',
columnIndex: 2,
},{
type: 'portlet1',
columnIndex: 0,
},{
type: 'portlet1',
columnIndex: 1,
},{
type: 'portlet1',
columnIndex: 2,
}
],
initComponent: function () {
var me = this;
me.callParent(arguments);
}
});