iplanit
19 Sep 2012, 10:20 AM
Hi,
I have a class that is a panel with a grid that has groupingfeature,etc. It works, since I can expand and collapse when I group.
Later, if I move the window to viewport or I desplay the wiewport with Ext.create from the viewport it doesn expands or collapses correctly.
Most of the code is default, there are no special references, all was made using Sencha Architect.
This is the code that works only if I mark it as initial view.
Ext.define('MyApp.view.SummaryPanel', {
extend: 'Ext.window.Window',
requires: [
'MyApp.view.gridscreen'
],
autoShow: true,
height: 708,
id: 'window2',
width: 1107,
autoScroll: true,
resizable: false,
layout: {
type: 'border'
},
frameHeader: false,
title: 'Summary of your events',
maximizable: true,
initComponent: function() {
var me = this;
Ext.applyIf(me, {
dockedItems: [
{
xtype: 'tabpanel',
flex: 1,
dock: 'top',
resizable: false,
activeTab: 0,
items: [
{
xtype: 'panel',
width: 1094,
layout: {
type: 'fit'
},
title: 'Summary',
tabConfig: {
xtype: 'tab',
autoRender: true,
id: 'window_'
},
items: [
{
xtype: 'gridscreen'
}
]
},
{
xtype: 'panel',
title: 'Tab 2'
},
{
xtype: 'panel',
title: 'Tab 3'
}
]
}
]
});
me.callParent(arguments);
}
});
I can put a video or more code if required.
Probably I am missing a critical thing in the development since it works when it is market as initial view. But from a viewport in the launch I use:
var dashboard=Ext.create('MyApp.view.SummaryPanel');
dashboard.show();
console.log(dashboard);
And it makes the window appear but the first group never collapses or expands. When you click makes the other groups to collapse or expand, you can only click in the first one, the other ignores the event. When you test only the panel with the grid it works.
Kind regards
I have a class that is a panel with a grid that has groupingfeature,etc. It works, since I can expand and collapse when I group.
Later, if I move the window to viewport or I desplay the wiewport with Ext.create from the viewport it doesn expands or collapses correctly.
Most of the code is default, there are no special references, all was made using Sencha Architect.
This is the code that works only if I mark it as initial view.
Ext.define('MyApp.view.SummaryPanel', {
extend: 'Ext.window.Window',
requires: [
'MyApp.view.gridscreen'
],
autoShow: true,
height: 708,
id: 'window2',
width: 1107,
autoScroll: true,
resizable: false,
layout: {
type: 'border'
},
frameHeader: false,
title: 'Summary of your events',
maximizable: true,
initComponent: function() {
var me = this;
Ext.applyIf(me, {
dockedItems: [
{
xtype: 'tabpanel',
flex: 1,
dock: 'top',
resizable: false,
activeTab: 0,
items: [
{
xtype: 'panel',
width: 1094,
layout: {
type: 'fit'
},
title: 'Summary',
tabConfig: {
xtype: 'tab',
autoRender: true,
id: 'window_'
},
items: [
{
xtype: 'gridscreen'
}
]
},
{
xtype: 'panel',
title: 'Tab 2'
},
{
xtype: 'panel',
title: 'Tab 3'
}
]
}
]
});
me.callParent(arguments);
}
});
I can put a video or more code if required.
Probably I am missing a critical thing in the development since it works when it is market as initial view. But from a viewport in the launch I use:
var dashboard=Ext.create('MyApp.view.SummaryPanel');
dashboard.show();
console.log(dashboard);
And it makes the window appear but the first group never collapses or expands. When you click makes the other groups to collapse or expand, you can only click in the first one, the other ignores the event. When you test only the panel with the grid it works.
Kind regards