Created
August 22, 2013 01:47
-
-
Save monyskynet/6302331 to your computer and use it in GitHub Desktop.
Copy record from one store to another store
From http://www.sencha.com/forum/showthread.php?53686-SOLVED-Copy-clone-or-duplicate-a-JsonStore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var records = []; store.each(function(r){ records.push(r.copy()); }); var store2 = new Ext.data.Store({ recordType: store.recordType }); store2.add(records); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment