kimu
24 Apr 2007, 8:45 AM
I have a grid in my script that until Ext 1.0 a3 worked perfectly, now after upgrading to Ext 1.0. stable it won't render.
I don't understand what is it cause i have other grids in the same script that render without problems and have almost the same configuration.
I got this error in firebug:
b is not defined
[Break on this error] Ext.DomHelper=function(){var _1=null;var _2=/^(?:br|frame|hr|img|input|link|meta...at ext-all.js line 9
this is my css and html code
.user-module-table {
overflow: hidden;
}
#config-entity-grid, #config-datetime-grid, #config-fields-grid{
width: 400px;
height: 150px;
}
<div id="config-fields-pnl">
<div class="config-wide-content-pnl config-content-pnl">
<h3>Configurazione dei campi</h3>
<div id="config-fields-grid" class="user-module-table"></div>
<div class="user-tip-box"><p>Selezionare il campo nella tabella e impostare i parametri nel panello "Dettaglio campi"</p></div>
</div>
</div>
div#config-fields-grid is my grid container. There is a wrapper div with invisibility set to hidden that contains all grids and don't cause problems with other grids placed inside.
js code is:
var store = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(subfields),
reader: new Ext.data.ArrayReader({id: 0}, [
{name: 'index', mapping: 'index'},
{name: 'name', mapping: 'name'},
{name: 'type', mapping: 'type'},
{name: 'sfield', mapping: 'sfield'}
])
});
store.load();
var cmod = new Ext.grid.ColumnModel([
{header: 'Id', width: 50, sortable: true, dataIndex: 'index'},
{header: 'Nome', width: 125, sortable: true, dataIndex: 'name'},
{header: 'Tipo', width: 100, sortable: true, dataIndex: 'type'},
{header: 'Campo speciale', width: 100, sortable: true, dataIndex: 'sfield'}
]);
var grid = new Ext.grid.Grid('config-fields-grid',{ds:store, cm:cmod});
grid.render();
grid.getSelectionModel().on('rowselect',handleRowSelect);
grid.getSelectionModel().selectFirstRow();
EDIT: this is the call stack provided from firebug:
DomHelper(Object id=ext-gen406 tag=div, null)ext-all.js (line 9)
DomHelper(body#ext-gen6.ext-gecko, Object id=ext-gen406 tag=div, undefined)ext-all.js (line 9)
Layer(Object dh=Object shadow=true, undefined)ext-all.js (line 99)
StatusProxy(undefined)ext-all.js (line 57)
DragSource(div#ext-gen382.x-grid-header, undefined)ext-all.js (line 59)
DragZone(div#ext-gen382.x-grid-header, undefined)ext-all.js (line 63)
HeaderDragZone(Object container=Object id=config-fields-grid, div#ext-gen382.x-grid-header, div#ext-gen385.x-grid-header)ext-all.js (line 231)
GridView()ext-all.js (line 229)
Grid()ext-all.js (line 225)
successValidationsRequest(Object tId=2 status=200 statusText=OK)main.js (line 561)
apply()ext-yui-adapter.j... (line 9)
setProgId(Object conn=XMLHttpRequest tId=2, Object timeout=50000, undefined)yui-utilities.js (line 15)
setProgId()
I hope someone can help me solve the problem.
Thanks
I don't understand what is it cause i have other grids in the same script that render without problems and have almost the same configuration.
I got this error in firebug:
b is not defined
[Break on this error] Ext.DomHelper=function(){var _1=null;var _2=/^(?:br|frame|hr|img|input|link|meta...at ext-all.js line 9
this is my css and html code
.user-module-table {
overflow: hidden;
}
#config-entity-grid, #config-datetime-grid, #config-fields-grid{
width: 400px;
height: 150px;
}
<div id="config-fields-pnl">
<div class="config-wide-content-pnl config-content-pnl">
<h3>Configurazione dei campi</h3>
<div id="config-fields-grid" class="user-module-table"></div>
<div class="user-tip-box"><p>Selezionare il campo nella tabella e impostare i parametri nel panello "Dettaglio campi"</p></div>
</div>
</div>
div#config-fields-grid is my grid container. There is a wrapper div with invisibility set to hidden that contains all grids and don't cause problems with other grids placed inside.
js code is:
var store = new Ext.data.Store({
proxy: new Ext.data.MemoryProxy(subfields),
reader: new Ext.data.ArrayReader({id: 0}, [
{name: 'index', mapping: 'index'},
{name: 'name', mapping: 'name'},
{name: 'type', mapping: 'type'},
{name: 'sfield', mapping: 'sfield'}
])
});
store.load();
var cmod = new Ext.grid.ColumnModel([
{header: 'Id', width: 50, sortable: true, dataIndex: 'index'},
{header: 'Nome', width: 125, sortable: true, dataIndex: 'name'},
{header: 'Tipo', width: 100, sortable: true, dataIndex: 'type'},
{header: 'Campo speciale', width: 100, sortable: true, dataIndex: 'sfield'}
]);
var grid = new Ext.grid.Grid('config-fields-grid',{ds:store, cm:cmod});
grid.render();
grid.getSelectionModel().on('rowselect',handleRowSelect);
grid.getSelectionModel().selectFirstRow();
EDIT: this is the call stack provided from firebug:
DomHelper(Object id=ext-gen406 tag=div, null)ext-all.js (line 9)
DomHelper(body#ext-gen6.ext-gecko, Object id=ext-gen406 tag=div, undefined)ext-all.js (line 9)
Layer(Object dh=Object shadow=true, undefined)ext-all.js (line 99)
StatusProxy(undefined)ext-all.js (line 57)
DragSource(div#ext-gen382.x-grid-header, undefined)ext-all.js (line 59)
DragZone(div#ext-gen382.x-grid-header, undefined)ext-all.js (line 63)
HeaderDragZone(Object container=Object id=config-fields-grid, div#ext-gen382.x-grid-header, div#ext-gen385.x-grid-header)ext-all.js (line 231)
GridView()ext-all.js (line 229)
Grid()ext-all.js (line 225)
successValidationsRequest(Object tId=2 status=200 statusText=OK)main.js (line 561)
apply()ext-yui-adapter.j... (line 9)
setProgId(Object conn=XMLHttpRequest tId=2, Object timeout=50000, undefined)yui-utilities.js (line 15)
setProgId()
I hope someone can help me solve the problem.
Thanks