Hey, i'm experiencing some strange problems when working with TableViews.
When the app starts, the table is filled with setData and rows can be added, moved and deleted. The first problem occurs occasionally after adding a row with appendRow and afterwards moving it. For example i have ten rows (index 0 to 9) and append another row. Then i move it upwards by two rows.
The expected values on this event would be e.index=8 and e.fromIndex=10, but sometimes e.index is 9. When i do sort my rows in the associated database using those values, the sorting is obviously wrong, but the representation in the UI is correct.
The second problem happens when deleting rows and also does only occur occasionally and only after working with the table (e.g. moving rows in it after the table has initially been loaded). When i delete the first row in the table e.index should always be 0, but for some rows i get higher values and even values greater then the current row count.
I wrote a test app to demonstrate and reprouce the problems, but with that app it doesn't happen. Even with the 'real' app i have found no way to constanly reproduce those errors. So i guess it is somehow depending on the complexity of the app, but i have no clue what to do about it.
Has someone experienced anything like this?
It's and iOS app which is alloy-based (1.3.0) and i'm using SDK 3.2.0.
Thanks, regards Florian
PS: I only found one other person describing something similar to my problems here in the forums. http://developer.appcelerator.com/question/153267/tableview-appendrow-not-synchronous