askQuestions
askQuestions

Reputation: 37

get all store records even though filters applyed

Is it possible that I can get all records even though the filters are apply to the store. Please provide some guideline or reference code.

var spareStore = Ext.getStore('ABC');
spareStore.filter( 'item', value);

when I alert spareStore count it should be all rechords. Thanks

Upvotes: 0

Views: 459

Answers (1)

Vinayak
Vinayak

Reputation: 436

U can use snapshot property of store as :

var allRecords = store.snapshot || store.data;

Upvotes: 1

Related Questions