-
16 Dec 2010 11:15 PM #201Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Yes, 'start' and 'limit' are integer parameters (both PagingStore and PagingToolbar do some math with them).
-
21 Dec 2010 1:44 AM #202
hi Condor,
I have the following situation. A tab panel that holds 2 grids, one using pagingstore and the other one normal store. When I am accessing functions (i.e. loadRecords() ) for the grid with normal store, the store is a instance of PagingStore, used in the first grid. Is there a way to avoid this? Comes this from that PagingStore extends Store?
Thanks!
-
21 Dec 2010 2:23 AM #203Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Yes, v0.5 creates PagingJsonStore etc. wrong, which in turn affects Ext.data.Store. I still need to create a v.0.5.1 for that...
If you're in a hurry: the fix is somewhere in this thread.
-
21 Dec 2010 3:00 AM #204
-
21 Dec 2010 4:09 AM #205
-
3 Jan 2011 12:39 AM #206
-
6 Jan 2011 6:03 AM #207
Thank you Condor, for the work and effort put in this great extension. Wish you a successful 2011 !
RolandExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8
-
13 Jan 2011 8:55 AM #208
Freezing in "Loading..." AlertBox after pressing Next in paging store
Freezing in "Loading..." AlertBox after pressing Next in paging store
Hello,
this extension is very nice .... easy to use .. i guess perfect ... but i got the following problem: when i press the next page in the pagingtoolbar, the next values appear correctly still, the Loading AlertBox doesn't disappear and freeze the screen.
Here is my code, first I define a grid having a tolbar:
and here i create it:Code:OriginalGridTab = Ext.extend(Ext.grid.GridPanel, { bbar : [], initComponent: function(){ Ext.apply(this, { }); OriginalGridTab.superclass.initComponent.apply(this, arguments); var ptb= new Ext.ux.PagingToolbar({ pageSize: 10, store: this.store, displayInfo: true, displayMsg: 'Assays displayed {0} - {1} of {2}', emptyMsg: "No assays to display" }); this.getBottomToolbar().add(ptb); } });
as i said, everything is working fine (and if i removed the paging stuff, it works perfectly ... but too slow so i need it) except when i press the next button.Code:var ds = new Ext.ux.data.PagingArrayStore({ fields : keysamples, data : datasamples , lastOptions: {params: {start: 0, limit: 10}} }); var origgrid = new OriginalGridTab({ store : ds, cm : cm, viewConfig: { forceFit:true },loadMask:true});
the debugger gives me the following exception:
which refers to the line 168 in PagingStore which is the following:HTML Code:Uncaught TypeError: Cannot call method 'child' of undefined setLink Exporter-all.js:157 EXTUTIL.Event.fire ext-all-debug.js:310 EXTUTIL.Observable.fireEvent ext-all-debug.js:54 (anonymous function) PagingStore.js:168 (anonymous function)ext-base.js:7
Can anyone help me?Code:this.fireEvent("load", this, r, options);
thx
colin
-
13 Jan 2011 10:31 AM #209Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
It says the error is on line: setLink Exporter-all.js:157
I have no idea what that code is.
-
13 Jan 2011 12:48 PM #210
thanks for the fast reply ...
indeed, someone tested the Exporter-all.js script (this provides functionality to export grid store to excel like format). Well apparently that script was not working so well and was no longer used ... .but still loaded ...
i removed it and everything works fine ...
thx again for your extension and happy new year
colin


Reply With Quote
