View Full Version : Scroll and Expand are not working properly

3 Apr 2014, 5:33 PM
We have one grid panel with in ext.window... the scroll bar of gridpanel is automatically moving up while scrolling it is't working properly and when ext.window is expanded the grid panel is not expanding..i guess some properties has to be set??..will using autoExpandColumn in gridpanel will solve the problem??

extWin=new Ext.Window({
title:"Locate Managed Object",items:[new Ext.grid.GridPanel({
title: "Managed Elements",
region: "center",
width:500, renderTo:"tree-id",
viewConfig: {forceFit: true},
store: store,
sm: new GeoExt.grid.FeatureSelectionModel({selectControl:select}),
cm: new Ext.grid.ColumnModel({
defaults: {
sortable: true
columns: [
{header:"Managed Elements",dataIndex:"fid"}

3 Apr 2014, 7:01 PM
Add a layout to your window so it knows how to handle the child grid

layout: 'fit',

6 Apr 2014, 8:12 PM
Thanks for your reply..
I have added layout:'fit'(to the above snippet)
which is helped to solve expanding problem but still scroll isn't working properly...