I've spend several hours on trying fix this problem and I still didn't find the solution :/
Everything works fine in Firefox, but in IE7 and Opera 9 I receive this error:
Line 236 (ext-all.js)
'this.container' is null or not an object
I've tried use different versions of the Ext (currently I'm using ext-1.1-beta2).
After a long investigation I found that problem occurs in this part of code:
PHP Code:
grid = new Ext.grid.EditorGrid(
'product-grid',
//parent.document.getElementById('product-grid'), - I also tried this method.. doesn't work
{
ds: dataSource,
cm: getColumnModel(),
selModel: new Ext.grid.RowSelectionModel({singleSelect: true}),
//autoExpandColumn: 'Nazwa produktu',
enableColLock: false,
loadMask: true
}
);
Grid is being created in "bootstrap" which looks like:
PHP Code:
var ProductGridUI = function() {
// code for building complete grid, menus, etc.
return {
init: function() {
buildGrid();
}
}
}
Ext.onReady(ProductGridUI.init, ProductGridUI, true);
Here is html code for the grid:
PHP Code:
<div style="width:100%;" class="x-box-blue">
<div class="x-box-tl">
<div class="x-box-tr">
<div class="x-box-tc">
</div>
</div>
</div>
<div class="x-box-ml">
<div class="x-box-mr">
<div class="x-box-mc">
<div id="product-grid" style="border:1px solid #99bbe8; overflow: hidden; width: 100%; height: 360px;">
</div>
</div>
</div>
</div>
<div class="x-box-bl">
<div class="x-box-br">
<div class="x-box-bc">
</div>
</div>
</div>
</div>
Thanks for help!