PDA

View Full Version : EditorGridPanel - monitorResize property does not function in 3.x version



vStyle
11 Jan 2011, 4:55 AM
Hi there,
I have updated the ext lib to 3.3.1 version and meet the following problem:
- monitorResize property does not function after update, I have checked the API and haven't found
this property in the list as well as autoWidth property.
Is there any new solution to allow the grid panel resizing depends of browser?

here a part of my old code:


var grid = new Ext.grid.EditorGridPanel({
el:'grid_id',
autoHeight: true,
autoWidth: true, //<-- does not function anymore
monitorResize: true, //<-- does not function anymore
title: 'My Grid',
store: store, //<-- defined and collects before
clicksToEdit:1,
cm: cm, //<-- defined and collects before
sm: checkColumn, //<-- defined and collects before
collapsible: false,
animCollapse: false,
trackMouseOver: false,
viewConfig: {
forceFit:true,
enableRowBody:true,
showPreview:false
}
});

// render the grid
grid.render();
Thanks for advice.
John

Condor
11 Jan 2011, 5:49 AM
1. autoWidth:true has never worked for a grid.
2. monitorResize has changed slightly in Ext 3.3, so it could be that you're getting a different result now.

I recommend removing autoWidth and monitorResize and replacing it with the FitToParent plugin (see User Extensions forum).

vStyle
11 Jan 2011, 7:16 PM
Thanks Condor,
Will try plugin.