{ "id": "61661", "key": "TIMOB-1029", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:41:55.000+0000", "created": "2011-04-15T02:41:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:23:26.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
I'm using a TableView to show a list of settings in my app,\nsimilar to Settings in the iPhone OS, and the easiest way to update\nthe table after a setting has been changed is to re-add all the\nrows. The problem is, when I remove the rows using setData([]), it\ntakes up half a second or so showing an unnecessary animation of\nall the rows being removed! When all I want is for the data to\nseamlessly be updated, that's an unacceptable user experience. It\nhas to be really simple to get rid of that animation, but from my\nsearching and experimenting so far it seems like it actually\nsurprisingly might not be possible with the current state of the\nAPI (see \nhttp://developer.appcelerator.com/question/1271/how-to-set-data-to-...\nand the \"invalid\" issue 815).
\nCould this please be added ASAP?
calling setData without a secondary parameter will cause the\ndata to be loaded with animation by default.
\nyou have two options:
\n1/ Call tableview.data = []
this is w/o animation by default.
\n2/ Call\ntableview.setData(data,{animationStyle:Titanium.UI.iPhone.RowAnimationStyle.NONE})
\nthis will turn off animation too
\nI updated KS to add a test case to show this explicitly.
\nAlso, in 1.4, you will be able to just pass a null too. For now,\nyou'll have to pass empty array.
Thanks for your help; my problem turned out to be that one of my\napps still was using the 1.2.0 API :(. Works great now!