PDA

View Full Version : EditorGrid doesn't show in IE



Hakkert
25 Feb 2011, 12:30 AM
I have an editor grid


var grid = new Ext.grid.EditorGridPanel({
store: new Ext.data.Store({
autoDestroy: true,
autoLoad: true,
url: 'XXXXXXXXXXXXXXXXXXXXXXXXX',
reader: new Ext.data.XmlReader({
record: 'record',
fields: [
{ name: 'Factuuromschrijving', type: 'string' }
]
}),
sortInfo: { field: 'Factuuromschrijving', direction: 'ASC' }
}),
columns: [{
id: 'Factuuromschrijving',
header: 'Factuuromschrijving',
dataIndex: 'Factuuromschrijving',
width: 220
}],
width: 600,
height: 300,
autoExpandColumn: 'Factuuromschrijving', // column with this id will be expanded
title: 'Facturen',
frame: true,
clicksToEdit: 1
});


I add the grid to a panel and the panel to another panel.



var objMenuPanel = new Ext.Panel({
header: false,
height: 800,
region: 'center',
items: [
grid
]
});

objCenterPanel.add(objMenuPanel);
// the mainlayout.dolayout is what i normaly use. the other two or tests
objMenuPanel.doLayout();
objCenterPanel.doLayout();

objMainLayout.doLayout();


When i run this in firefox, chrome everything works fine, but in IE nothing shows. Also firebug en chrome developer tools show no errors.

Condor
25 Feb 2011, 12:55 AM
1. Which layout does objCenterPanel have?

2. objMenuPanel doesn't have a layout (should probably be 'fit').

3. You only need to call objCenterPanel.doLayout().

Hakkert
25 Feb 2011, 1:05 AM
The centerpanel has layout: 'vbox'

For the test i added the layout fit to the objMenuPanel and only called objCenterPanel.doLayout. Still the same issue, firefox and chrome no problem but IE nothing.