22 Mar 2013 6:50 AM #1
Problems with removing all items from a DataView List (Sencha 2.2 BETA)
I'm writing here in the hope that you might be able to assist me in solving this weird thing that's happening with the DataView List in Sencha 2.2 BETA:
I have a simple list defined with useSimpleItems: false, variableHeights: true. I load a few items at first, after some time I'm trying to remove the existing set of items and replace them with other items using the load() function of the Store.
The issue is that everytime I remove all items, in fact, one item always remains visible (the last one from the Store) although the Store is emptied. I've tried a few methods to remove the items, thinking that one of those might work: removeAll(), removeAt(), remove item by item. In all cases I'm left with an item floating around + the emptyText list message !? This has never happened in the Sencha 2.1 version.
I've also noticed that not all the items are actually removed but in fact translated to -10,000 px on Y axes. The trouble is that the last item is not translated to -10,000 px and that's why is still visible.
Anybody else had any problems with this? Any pointers on how can be solved? Is there any workaround?
22 Mar 2013 9:24 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
When I do a store.removeAll(), the list is blank for me. Can I get a test case I can run locally?Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
22 Mar 2013 12:07 PM #3
26 Mar 2013 6:38 AM #4
Can you confirm this bug? Would it help if I'm posting the bug according to the template?