View Full Version : lost new records after filter
tofsteel
11 Dec 2007, 4:33 AM
hi All...
i add new records jsonstore but when i filter the store new records is lost... :-?
regards
tryanDLS
11 Dec 2007, 10:11 AM
Kind of hard to guess without seeing code (in CODE tags).
sjivan
11 Dec 2007, 10:32 AM
The behavior I've seen is that on filter, the Store creates a snapshot and if records are subsequently added, when the filter is cleared, the store revers to the snapshot it took prior to the filter and hence newly added records are lost.
IMHO this is not the most intuitive behavior, but once we know this is how the Store behaves, can take measures to work around this use case (by keeping a copy of the original store for example).
Sanjiv
tofsteel
11 Dec 2007, 3:51 PM
thanks for reply...
i m ok... no problem...
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.