-
20 Nov 2008 8:14 AM #401
Hi,
I am testing the last release of the live grid. I notice that the variable "bufferedSelections" has disappear. So when I select several rows I cannot use this king of function which works with older live grid release :
var rowList = Ext.encode(myGrid.getSelectionModel().bufferedSelections);
Is there a another way to retrieve multiple row selection ?
otherwise I will parse myGrid.getSelectionModel().getSelections() but with this functions we cannot retrieve row num...
Thanks
-
20 Nov 2008 11:25 AM #402
-
20 Nov 2008 12:05 PM #403
Well, I've brought this feature into the 0.3 branch since so many people requested it and used hacks to use their own version of an EditorGrid.
You should consider that storing modified records and syncing changes on scroll afterwards does not fully work yet, as modified records get replaced upon buffering by the data that comes from the server. So by now, you should store all the changes you've made right after your edit field loses focus, i.e. send the request out to the server to store the changes permanently.
-
20 Nov 2008 12:11 PM #404
-
20 Nov 2008 12:20 PM #405
-
20 Nov 2008 12:26 PM #406
-
20 Nov 2008 12:31 PM #407
-
21 Nov 2008 11:13 PM #408
Error: this.ds.fields.get(i) is undefined
Error: this.ds.fields.get(i) is undefined
Error: this.ds.fields.get(i) is undefined Error: this.ds.fields.get(i) is undefined
Hi, having this error and can't find a way to solve it.
Code follows:
Thank you in advance.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);
-
22 Nov 2008 1:48 AM #409
I think that, the "nearLimits" value must be lower than the "bufferSize" otherwise the grid will be always reloaded each time you scroll lines.
-
22 Nov 2008 8:10 AM #410
Mmm, the error is more of "Can't find the fields for your store". Which is strange since is defined.
Here's my json response:
Code:{'version': 0, 'totalCount': 2, 'resultSet':[{"rowId":"1","appName":"BDFE","description":"BDMex Consulting S.A. de C.V. - Factura Electr\u00f3nica"},{"rowId":"2","appName":"SYSTEM","description":"Aplicaci\u00f3n gen\u00e9rica."}]}


Reply With Quote


