PDA

View Full Version : Grid Panel not wokring in IE 6



jstone6507
17 Dec 2009, 12:23 PM
I have a case where a GridPanel is working fine in Firefox, but not in IE6. The grid is being filled from the results of a dwr call using a store.add(). I'm using a TabPanel that contains a border layout and the west side is the search criteria and the center is the grid panel. In Firefox, the grid panel shows the grid headers prior to any search..but IE it does not. Firefox will show the results of the search...and IE will not. Just curious if anyone has had any experiences like this. I know it's not data related because I have trimmed down the search to one column that always has text data and I still get data in Firefox but not IE. I'm at my wits end as I can't get this to work.

Here's some code...


this builds the tab with the priceSearchForm and the priceListGrid


function buildPriceSearchTabOnly()
{
pricingTabPanel.add({
title: 'Price List',
layout: 'border',
items: [{
region:'west',
items: 'priceSearchForm',
height: 405
}, {
region: 'center',
items: [priceListGrid]
}]
})

}

This is the code the calls the delegate using DWR and builds the store for the grid.


PricingDelegate.getPriceList(priceSearchCriteria, function(prices){

priceStore.suspendEvents(false);

priceStore.removeAll();
for (var p = 0; p < prices.length; p++) {

priceStore.add(new PriceRecord({
mgtCo: prices[p].mgtCo,
fundNo: prices[p].fundNo,
priceDate: prices[p].priceDate,
pmPrice: prices[p].pmPrice,
pmPriceVar: prices[p].pmPriceVar,
pmDualPrice: prices[p].pmDualPrice,
pmDualPriceVar: prices[p].pmDualPriceVar,
dailyDividend: prices[p].dailyDividend,
dailyVariation: prices[p].dailyVariation,
preDivRate: prices[p].preDivRate,
postDivRate: prices[p].postDivRate,
netIncome: prices[p].netIncome,
day1Yield: prices[p].day1Yield,
day7Yield: prices[p].day7Yield,
day30Yield: prices[p].day30Yield,
changeId: prices[p].changeId,
pratStatus: prices[p].pratStatus,
pratErrors: prices[p].pratErrors,
updateTimeStamp: prices[p].updateTimeStamp,
priceRateNumber: prices[p].priceRateNumber,
statusTimeStamp: prices[p].statusTimeStamp,
nativeData: prices[p].nativeData
}));

}


priceStore.resumeEvents();

myMask.hide();
// refresh and show.
priceListGrid.getView().refresh();
priceListGrid.show();


This is the store

var priceStore = new Ext.data.Store({
url: '',
reader: new Ext.data.JsonReader({
root: 'rows',
fields: [
'mgtCo',
'fundNo',
{ name: 'priceDate',
type: 'date',
dateFormat: 'm-d-Y'
},
'pmPrice',
'pmPriceVar',
'pmDualPrice',
'pmDualPriceVar',
'dailyDividend',
'dailyVariation',
'preDivRate',
'postDivRate',
'netIncome',
'day1Yield',
'day7Yield',
'day30Yield',
'changeId',
'pratStatus',
'pratErrors',
{ name:'updateTimeStamp',
type: 'date',
dateFormat: 'm-d-Y h:i:s'
},
'modified',
'priceRateNumber',
{ name: 'statusTimeStamp',
type: 'date',
dateFormat: 'm-d-Y'
},
'nativeData'
]
})
});

CrazyEnigma
17 Dec 2009, 1:29 PM
Your code needs to be in a code tag.

Couldn't use just use load(). I don't see the reason why you need all that code.

lyle
5 Jan 2010, 7:48 AM
We are doing something similar, more straightforward using a load of the store to populate the grid. There are two tabs with two grids. The first panel does not show but the first does in IE. In FF they both work fine.

I thought it might be a sizing issue because we have had issues with toolbars and buttons getting squished or shoved in IE. But forceFit does not seem to have any affect.

Frith
4 Feb 2010, 4:05 AM
Same issue.

Works fine in FF and Chrome.

Column headers appear but no data.

Need to use IE6 due to work environment.

HELP?!?!?