PDA

View Full Version : Find a Record in a Grid Store



Zinnia
6 Feb 2014, 12:06 AM
Hi

Can anyone provide me a solution for the below mentioned issue.

I have a Store and applied some filters. when I use Find/findExact method to the store it will find the availability of record in the filtered data not in all the records. Is there any solution to find the record...

Note: Solution shouldn't be like clearing filters and unloading the store to array and search the store...

Thanks
Zinnia

saJoshua
6 Feb 2014, 12:26 AM
Theres a snapshot property on the store that holds an unfiltered set of all records. Use store.snapshot.find / store.snapshot.findBy

http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Store-property-snapshot

Zinnia
6 Feb 2014, 4:44 AM
Thanks Joshua for your response:)