Hi, having this error and can't find a way to solve it.
Code follows:
Code:
bdApp.appBrowserGrid = Ext.extend(Ext.ux.grid.livegrid.GridPanel, {
initComponent : function(){
// RECORD
var readerRecord = Ext.data.Record.create([
{name: 'rowId'},
{name: 'appName'},
{name: 'description'}
]);
// READER
var gridReader = new Ext.ux.grid.livegrid.JsonReader({
root : 'resultSet',
totalProperty : 'totalCount',
id : 'rowId'
}, readerRecord);
this.region = 'center';
this.anchor = '100% 100%';
this.autoExpandColumn = 'description';
// STORE
this.store = new Ext.ux.grid.livegrid.Store({
autoLoad : false,
bufferSize : 100,
reader : gridReader,
url : 'php/getAppBrowserStore.php'
});
// SELECTION MODEL
this.selModel = new Ext.ux.grid.livegrid.RowSelectionModel();
this.view = new Ext.ux.grid.livegrid.GridView({
nearLimit : 100,
loadMask : {msg : 'Cargando datos...'},
autoFill: true,
columnsText: 'Columnas',
sortAscText: 'Ordenar ascendente',
sortDescText: 'Ordenar descendente',
forceFit: true
});
//this.tbar = new appBrowserTBar();
this.bbar = new Ext.ux.grid.livegrid.Toolbar({
view : this.view,
displayInfo : true,
displayMsg : 'Mostrando {0} - {1} de {2} registros',
emptyMsg : 'No hay datos para mostrar',
refreshText : 'Releer datos',
});
this.on('render', function(){this.store.load();});
bdApp.appBrowserGrid.superclass.initComponent.call(this);
}
});
bdApp.appBrowser = Ext.extend(Ext.Panel, {
initComponent: function(){
var browserGrid = new bdApp.appBrowserGrid({
loadMask: 'Cargando datos...'
});
Ext.apply(this, {
layout: 'border',
border: true,
frame: true,
anchor: '100% 100%',
autoExpandColumn: 'desc',
items: [browserGrid]
});
bdApp.appBrowser.superclass.initComponent.apply(this, arguments);
}
});
Ext.reg('appBrowser', bdApp.appBrowser);
Thank you in advance.