PDA

View Full Version : Portals columns not getting proper width



AtulDawkhare
8 May 2012, 5:26 AM
Hi
In my project I am using Extjs 4.0.7 's portals.

Currently as show in the demo , there are three columns. I want to increase the width of the first column and rest two will be as it is.

I wanted to give width for the columns dynamically. i.e. depending upon some condition width for the first column will be large etc.

Here is the code


items: [{
id: 'col-1',
width: 300,
items: [{
id: 'portlet-1',
title: 'Grid Portlet Tex',
tools: this.getTools(),
height:200,
items: Ext.create('Ext.app.GridPortlet'),
listeners: {
'close': Ext.bind(this.onPortletClose, this)
}
}


I tried to set width as show in BOLD above also tried columnWidth as well but still it is not working / getting the proper width.

Please suggest what can be done here.

AtulDawkhare
10 May 2012, 7:38 PM
Can anybody suggest me what is wrong here?