flyingman
5 Aug 2009, 7:55 AM
Hello,
i have a problem with the view-count. In the following code i have defined in the center-region the uiview with count:33 and dateTimeFormat : 'd.m.Y H:i'. This works for the first load. Then y click another view from the outline and there is the count = 40 and the dateTimeFormat : 'd.m.Y H:i A'.
Where can y set the defaults for a view?
Ext.onReady(function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Ext.QuickTips.init();
viewport = new Ext.Viewport({
layout:'border',
items:[{
region:'north', /* Anwendungstitel und -Icon */
xtype:'box',
el: 'north',
height: 5,
margins:'0 0 0 0'
},{
region:'south', /* Umgebung und Statustexte */
contentEl: 'south',
title:'wo bin ich?',
split:true,
height: 70,
minSize: 70,
maxSize: 70,
collapsible: true,
margins:'0 0 0 0'
},{
region:'center', /* Ansichten und Dokumente in Tabs */
xtype: 'tabpanel',
id: 'center-region',
enableTabScroll: true,
activeTab:0,
defaults:{
target: 'center-region',
border:true
},
items: [{
id: 'ui-view',
layout: 'fit',
xtype: 'xnd-uiview',
viewName:'vwErsteller',
title:'Nach Ersteller',
count: 33,
dateTimeFormats : {
dateFormat : 'd.m.Y',
timeFormat : 'H:i:s',
dateTimeFormat : 'd.m.Y H:i:s'
},
defaults:{
target: 'center-region',
dateTimeFormats : {
dateFormat : 'd.m.Y',
timeFormat : 'H:i:s',
dateTimeFormat : 'd.m.Y H:i:s'
},
count: 33,
closable:true,
border:false
}
}]
},{
region:'east', /* Angaben über Anwender und evt. Application-Owner */
id: 'east-panel',
i have a problem with the view-count. In the following code i have defined in the center-region the uiview with count:33 and dateTimeFormat : 'd.m.Y H:i'. This works for the first load. Then y click another view from the outline and there is the count = 40 and the dateTimeFormat : 'd.m.Y H:i A'.
Where can y set the defaults for a view?
Ext.onReady(function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Ext.QuickTips.init();
viewport = new Ext.Viewport({
layout:'border',
items:[{
region:'north', /* Anwendungstitel und -Icon */
xtype:'box',
el: 'north',
height: 5,
margins:'0 0 0 0'
},{
region:'south', /* Umgebung und Statustexte */
contentEl: 'south',
title:'wo bin ich?',
split:true,
height: 70,
minSize: 70,
maxSize: 70,
collapsible: true,
margins:'0 0 0 0'
},{
region:'center', /* Ansichten und Dokumente in Tabs */
xtype: 'tabpanel',
id: 'center-region',
enableTabScroll: true,
activeTab:0,
defaults:{
target: 'center-region',
border:true
},
items: [{
id: 'ui-view',
layout: 'fit',
xtype: 'xnd-uiview',
viewName:'vwErsteller',
title:'Nach Ersteller',
count: 33,
dateTimeFormats : {
dateFormat : 'd.m.Y',
timeFormat : 'H:i:s',
dateTimeFormat : 'd.m.Y H:i:s'
},
defaults:{
target: 'center-region',
dateTimeFormats : {
dateFormat : 'd.m.Y',
timeFormat : 'H:i:s',
dateTimeFormat : 'd.m.Y H:i:s'
},
count: 33,
closable:true,
border:false
}
}]
},{
region:'east', /* Angaben über Anwender und evt. Application-Owner */
id: 'east-panel',