{ "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).

\n

Could this please be added ASAP?

{html}", "attachment": [], "flagged": false, "summary": "Ability to instantly clear all rows from a tableview", "creator": { "name": "matthewlieder", "key": "matthewlieder", "displayName": "Matthew Lieder", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "matthewlieder", "key": "matthewlieder", "displayName": "Matthew Lieder", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124603", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

calling setData without a secondary parameter will cause the\ndata to be loaded with animation by default.

\n

you have two options:

\n

1/ Call tableview.data = []

\n

this is w/o animation by default.

\n

2/ Call\ntableview.setData(data,{animationStyle:Titanium.UI.iPhone.RowAnimationStyle.NONE})

\n

this will turn off animation too

\n

I updated KS to add a test case to show this explicitly.

\n

Also, in 1.4, you will be able to just pass a null too. For now,\nyou'll have to pass empty array.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:55.000+0000", "updated": "2011-04-15T02:41:55.000+0000" }, { "id": "124604", "author": { "name": "matthewlieder", "key": "matthewlieder", "displayName": "Matthew Lieder", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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!

{html}", "updateAuthor": { "name": "matthewlieder", "key": "matthewlieder", "displayName": "Matthew Lieder", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:55.000+0000", "updated": "2011-04-15T02:41:55.000+0000" }, { "id": "410551", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:23:26.000+0000", "updated": "2017-03-09T21:23:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }