I have a page rendered using ExtJs5. It has a tabpanel which consists of an xtype:Container
,
this.tabPanel = Ext.create('Ext.tab.Panel', {
cls: 'tabPanel',
width: '100%',
minHeight: 400,
activeTab: 0,
items: [
{
title: 'Details',
items: [
this.detailsPanel
]
},
{
title: 'History',
items: [
{
xtype: 'container',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [
this.collectionHistoryTitle,
collectionHistoryChart,
this.horizontalLineTop,
this.collectionHistoryPanelView,
this.horizontalLineBottomMargin,
this.collectionHistoryGrid,
//this.collectionLogPaging,
]
},
this.collectionHistoryDoNotChangeMessage
]
Here, the this.collectionHistoryPanelView, is as following,
this.collectionHistoryPanelView = Ext.create('Ext.view.View', {
store: 'collectionHistoryPanelStore',
tpl: this.collectionHistoryPanelTpl,
emptyText: 'Please select a row.',
loadMask: false,
margin: '0 0 10 0'
});
What happens is that when I click on a grid row(this.collectionHistoryGrid
) the emptyText('Please select a row') gets replaced by an html template(this.collectionHistoryPanelTpl
), gets hidden behind the grid and gets displayed correctly after refresh. I have tried a lot of things, but nothing so far has worked.
After Clicking on grid, the Ext view gets hidden:
Works after refresh:
doLayout
oncollectionHistoryPanelView
? – Alexander