-
22 Nov 2008 10:03 AM #411
And this is the execution stack:
Code:this.ds.fields.get(i) is undefined getColumnData()()ext-all-debug.js (line 31542) renderRows()(0, 0)ext-all-debug.js (line 31559) renderBody()()ext.ux.l...veGrid.js (line 448) refresh()(true)ext-all-debug.js (line 31594) reset()(false)ext.ux.l...veGrid.js (line 345) callback()()ext.ux.l...veGrid.js (line 900) loadRecords()(Object success=true records=Object totalRecords=2 version=0, Object params=Object scope=Object, true)ext-all-debug.js (line 10860) loadRecords()(Object success=true records=Object totalRecords=2 version=0, Object params=Object scope=Object, true)ext.ux.l...veGrid.js (line 2902) loadResponse()(Object params=Object request=Object reader=Object, true, Object tId=3 status=200 statusText=OK)ext-all-debug.js (line 11342) getViewWidth()(function(), Object events=Object conn=Object useAjax=true, Object 0=Object 1=true 2=Object, undefined)ext-base.js (line 9) handleResponse()(Object tId=3 status=200 statusText=OK)ext-all-debug.js (line 5318) getViewWidth()(Object conn=XMLHttpRequest tId=3, Object scope=Object argument=Object timeout=30000, undefined)ext-base.js (line 10) getViewWidth()()ext-base.js (line 10) [Break on this error] name : (typeof name == '...d' ? this.ds.fields.get(i).name : name),
-
22 Nov 2008 3:05 PM #412
-
22 Nov 2008 3:05 PM #413
Hi.
The following code produces the following error:
Can somebody please help? I spent the last two days trying to figure why is failing.Code:this.ds.fields.get(i) is undefined http://localhost/bdApp/tools/ext/ext-all-debug.js Line 31542
Thank you in advance.
[CODE]Ext.namespace('bdApp');
bdApp.appBrowserGrid = Ext.extend(Ext.ux.grid.livegrid.GridPanel, {
autoExpandColumn: 'description',
initComponent : function(){
var gridReader = new Ext.ux.grid.livegrid.JsonReader({
root : 'resultSet',
//versionProperty : 'response.value.version',
totalProperty : 'totalCount',
id : 'rowId'
},[{
name : 'rowId'
},{
name : 'appName'
},{
name : 'description'
}]);
var gridStore = new Ext.ux.grid.livegrid.Store({
autoLoad : true,
bufferSize : 100,
remoteSort : true,
reader : gridReader,
url : 'php/getAppBrowserStore.php'
});
this.colModel = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer({header: '#'}),
{header: '#', id: 'rowId', dataIndex: 'rowId', hidden: true},
{header: 'C
-
22 Nov 2008 3:06 PM #414
Yes:
this.colModel = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer({header: '#'}),
{header: '#', id: 'rowId', dataIndex: 'rowId', hidden: true},
{header: 'C
-
22 Nov 2008 3:11 PM #415
[QUOTE=jmariani;254075]Yes:
this.colModel = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer({header: '#'}),
{header: '#', id: 'rowId', dataIndex: 'rowId', hidden: true},
{header: 'C
-
22 Nov 2008 3:14 PM #416
Holy cow!
Whithout rownumberer is Okay. But this is weird, because I have another liveGrid and have to problems with rownumberer, that's why I thought it wasn't the problem.
-
22 Nov 2008 3:21 PM #417
This code has rownumberer and performs ok.
[CODE]// RECORD DEFINITION
var menuBrowserRecord = Ext.data.Record.create([
{name: 'menuId'},
{name: 'appName'},
{name: 'orden'},
{name: 'nombre'},
{name: 'descripcion'},
{name: 'parentMenu'},
{name: 'parentMenuDescription'},
{name: 'href'},
{name: 'favorite'},
{name: 'qtip'}
]);
// This is the column model for the grid.
var menuBrowserColumnModel = new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer(),
{header: '#', id: 'menuId', dataIndex: 'menuId', align: 'right', hidden: true, hideable: false},
{header: 'Aplicaci
-
22 Nov 2008 3:33 PM #418
Confirmed. I have tested both setups and the second does work, while your first code snippet throws an error. I see what I can do...
-
22 Nov 2008 3:40 PM #419
-
22 Nov 2008 3:47 PM #420


Reply With Quote
