PDA

View Full Version : use 3 different stores or use a filter in one????



angelo88
15 Jul 2013, 6:36 AM
hi guys! i have a tabpanel in which i have a jsonstore. the records that i load are different in all of three tabs of tabpanel. It's better instanciate one store and clear and filter when i change tab or it's better to have 3 different store with personalized filter (each of store linked to each of tabpanel)?
In the first case i have one store linked to the three panel of tabpanel!
thanks in advance and sorry for my bad english ;)
ps: in each tabpanel i have a gridpanel with the store!

slemmon
16 Jul 2013, 10:00 PM
I would use three different store instances - one for each grid/tab unless you wish for all of the tabs to show the same information all of the time (the same records, that is - the columns could be different) in which case I'd use a single instance.