PDA

View Full Version : Reload store of list not showing new data



marimaf
22 Jun 2011, 7:14 AM
I have an overlay that has a toolbar as a dockedItem and a Ext.List as an item.
This overlay is shown as the user drags the slider to show the important things in each card I have in a carousel.

I am able to change the toolbar's title while I drag:


this.overlayTb.setTitle(cards[cardNumber].categoryName);

but when I try to change the store that feeds my list view, it does work.


this.myList.store = cards[index].store;

It just keeps showing the data of the initial store I set up instead of changing, like the toolbar title does.
I have tried calling doLayout() on myList, but no good came out of that. I hope you can help me

simiita
23 Jun 2011, 4:24 AM
hi

try to update the store of your list with the method list.update(store*), maybe this would work..

http://dev.sencha.com/deploy/touch/docs/?class=Ext.List