PDA

View Full Version : grid scrollbar on popup window



armenn
21 Jul 2008, 12:37 PM
Hello,

I have following problem. There is a grid (GridPanel) rendered on popup window along with other components on the same popup screen. First time I am opening the popup there is an vertical scrollbar created for that grid , which is right behaviour.

However if I close and open the same popup again, the vertical scrollbar dissapearing. The only way to force it to appear is to move the popup screen over the display's edge. Or to click on sortable grid column header. Programmatic refresh does not help.

Thank you for your help.

21 Jul 2008, 12:41 PM
welcome tothe forums. Please post code

armenn
21 Jul 2008, 12:47 PM
The following code working perfect on usual page. However on popup window it works
inconsistently. First time it shows vertical scrollbar, and not shows it if you close and open
that window again.
.....................................................................................
Ext.onReady(function(){
var movePage = new MovePage();
moveElParms = movePage.getMoveElParms();


var mnTnList = new ManageTNAssocList();

// create the Grid
gridManageTN = new Ext.grid.GridPanel({
id : mnTnList.id,
store: new Ext.data.Store({
reader: mnTnList.manageTnArrayReader(),
data: mnTnList.manageTnData
}),
cm: mnTnList.manageTnListColumn(),
stripeRows: true,
autoExpandColumn: mnTnList.autoExpandColumnNm,
height:110,
title: mnTnList.tableCaptureNm
});

gridManageTN.render(mnTnList.renderToLocation);
gridManageTN.getSelectionModel().selectFirstRow();

..............................................................................................