Search code examples
extjsextjs4

how to recover an extjs4 store?


Model:

Ext.define('Voting', {
    extend: 'Ext.data.Model',
    hasMany: [
        {model: 'VotingQuestion', name: 'questions'}
    ]
}

and:

grid.bindStore(voting.questions())

then use RowEditing to add/edit/delete/resort the grid

after this, If I click a cancel button, is there any easy way to recover the 'questions' to init status (except reload store from server)?

thanks


Solution

  • http://www.sencha.com/forum/showthread.php?146721-how-to-recover-a-store&p=648024&viewfull=1#post648024