-
18 Apr 2008 12:22 PM #21
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
28 Apr 2008 9:14 AM #22
If I understand your last response, the PagingMemoryProxy only works with array readers. I have reviewed the documentation trying to figure out how to make a JsonReader an ArrayReader. We are using a JsonStore and the root element is the array of data. I tried this and I do not get any error and the display is still wrong. Also I do not understand why all rows are displayed when I specify a limit of 25? I am using fire fox and tried to debug the problem. I set several break point in PagingMemoryProxy not of them were hit. I question whether or not I have set this up correctly. I down loaded the PagingMemoryProxy and added 2 folders, ux and data.
-
28 Apr 2008 9:19 AM #23
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
5 May 2008 12:27 PM #24
yes the array is in the jsonReader, jsonData.rows is thew data array. Going through the debugger, I can see jsonReader.jsonData.rows in the debugger, but when I try to reference it, I get not defined error. Not sure why perhaps this is private data?
-
16 May 2008 6:36 AM #25
PagingMemoryProxy and EditorGrids
PagingMemoryProxy and EditorGrids
Hey, thanks for the great addon. We're really getting a lot of use out of it.
So far, we've only used PMP on GridPanels, but now we're needing to use a PMP on an EditorGrid. All the data is being served up correctly, but we have a problem when update a record or add a new one.
When I add a new record, enter some values for it, then sort my grid, the new record is disappearing. The same thing occurs when I edit an existing record, except that the edits disappear (but the record stays).
I'm thinking that I may need to send the new record or edits back to the proxy (we're using remote sorting and remote filtering). Right now, when I add a new record, I do this (the insert is in red):
Do I need to add the new record to the proxy, as well? Do I need to push any edits up to the PMP, also?Code:{ text: 'Add', handler: function(){ var r = new Record({}); grid.stopEditing(); store.insert(0, r); grid.startEditing(0, 0); } }
Thanks in advance.
-
16 May 2008 6:42 AM #26
@mrollins -- Yes, ultimately you have to do the same thing you would with a real server. The PMP is, in essence, your server. Currently PMP is coded for read-only use, so you must update/append each row in the proxy.data array when you commit the store changes.
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
27 May 2008 7:55 AM #27Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,483
- Vote Rating
- 56
I'm also trying this approach, loading 300 records into the PagingMemProxy and performing a full update (based on your code snippets below) if users modifies a record.
What happens to memory when you do the following:
Is there a memory leak here caused by old data not being deleted before being overwritten?Code:ds.proxy.data = Ext.decode(response.responseText);
I.e. do I need to do
first?Code:delete ds.proxy.data;
-
27 May 2008 8:06 AM #28"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
27 May 2008 11:02 AM #29Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,483
- Vote Rating
- 56
Would sIEve detect this (if in fact it was a leak) or is it more concerned with orphaned dom elements etc?
-
27 May 2008 11:04 AM #30
Yes, sIeve focuses on DOM linkage.
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.





Reply With Quote
