PDA

View Full Version : get a filtered record from a store



dolittle
16 Jun 2009, 1:13 PM
I have a store with several records.
One of the fields is color black/white.
I'm setting a filter on the store:

myStore.filter('color', 'white');
Can I get one of the records with color=black that is filtered and change its color to white?
When using:

myStore.getById('someId')
I'm only getting records with color=white.

I can clear the filter and apply it again but it doesn't feel the right way because when the store is associated with a dataView I also need to suspend and resume events.

Thanks

tryanDLS
16 Jun 2009, 1:26 PM
There was a thread posted today that might want to look at http://extjs.com/forum/showthread.php?t=71521