RonaldBrinkerink
18 Aug 2009, 8:55 AM
Hi there,
I have tried the following code:
Ext.onReady(function (){
// Als alles geladen is dan loading scherm verwijderen
setTimeout(function(){
Ext.get('loading').remove();
Ext.get('loading-mask').fadeOut({
remove:true
});
},
350);
// Opbouw van het portaal
var oViewport = new Ext.Viewport({
layout: 'border',
id: 'viewport',
items:[{
xtype: 'tabpanel',
region:'center',
id: 'center-panel',
enableTabScroll: true,
shadow : true
},{
region : 'west',
id : 'west-panel',
collapsible : true,
titleCollapse : true,
split : true,
width : 250,
layout : 'accordion'
},{
region : 'south',
id : 'south-panel',
height : 20
}]
});
//================================================================================================================
// Na het laden van het portaal de inhoud opbouwen
//================================================================================================================
oViewport.on('show', function() {
// De widgets opbouwen
var oTakenView = new Ext.nd.UIView({
id: 'takenUIView',
viewTitle: 'Mijn taken',
viewUrl: '/' + sessionContext.workflowPath + '/Taken - Context',
showActionbar : true,
showSearch : true,
showPagingToolbar : true,
showSingleCategory : sessionContext.Session.commonUserName,
viewPort : this,
container : Ext.getCmp('west-panel'),
tabPanel : Ext.getCmp('center-panel'),
statusPanel : Ext.getCmp('south-panel')
})
}) // eo oViewport.on("show");
oViewport.show();
}) //eo onReady
The uiview gets created and if i manuallya add it to the west-panel using Ext.getCmp('west-panel').add(oTakenView) it does render. But then thje default behaviour of opening documents in the tabpanel doesn''t work. Thsi seemed to work with ExtJS 2.0. any ideas?
Regards, Ronald
I have tried the following code:
Ext.onReady(function (){
// Als alles geladen is dan loading scherm verwijderen
setTimeout(function(){
Ext.get('loading').remove();
Ext.get('loading-mask').fadeOut({
remove:true
});
},
350);
// Opbouw van het portaal
var oViewport = new Ext.Viewport({
layout: 'border',
id: 'viewport',
items:[{
xtype: 'tabpanel',
region:'center',
id: 'center-panel',
enableTabScroll: true,
shadow : true
},{
region : 'west',
id : 'west-panel',
collapsible : true,
titleCollapse : true,
split : true,
width : 250,
layout : 'accordion'
},{
region : 'south',
id : 'south-panel',
height : 20
}]
});
//================================================================================================================
// Na het laden van het portaal de inhoud opbouwen
//================================================================================================================
oViewport.on('show', function() {
// De widgets opbouwen
var oTakenView = new Ext.nd.UIView({
id: 'takenUIView',
viewTitle: 'Mijn taken',
viewUrl: '/' + sessionContext.workflowPath + '/Taken - Context',
showActionbar : true,
showSearch : true,
showPagingToolbar : true,
showSingleCategory : sessionContext.Session.commonUserName,
viewPort : this,
container : Ext.getCmp('west-panel'),
tabPanel : Ext.getCmp('center-panel'),
statusPanel : Ext.getCmp('south-panel')
})
}) // eo oViewport.on("show");
oViewport.show();
}) //eo onReady
The uiview gets created and if i manuallya add it to the west-panel using Ext.getCmp('west-panel').add(oTakenView) it does render. But then thje default behaviour of opening documents in the tabpanel doesn''t work. Thsi seemed to work with ExtJS 2.0. any ideas?
Regards, Ronald