{ "id": "63858", "key": "TIMOB-3226", "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": [ { "id": "11257", "description": "", "name": "Sprint-2011-09", "archived": true, "released": true, "releaseDate": "2011-03-07" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T03:39:58.000+0000", "created": "2011-04-15T03:39:58.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "header", "release-1.6.0", "tableviewrow" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T06:23:14.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
tableView.appendRow(row) does not always render the row the same\nas tableView.setData(data), specifically I have seen differences\nwith how it handles headers attached to rows. Take the following\nexample (written inline, excuse any minor syntax errors here)
\nDoes not work, header is only applied to first row
\nvar tableView = Titanium.UI.createTableView({});
\nwindow.add(tableView);
\nvar row = Ti.UI.createTableViewRow({header: 'foobar'});
\ntableView.appendRow(row);
\nvar row2 = Ti.UI.createTableViewRow({header: 'foobar 2'});
\ntableView.appendRow(row2);
\nWorks, header is applied to all rows:
var tableView = Titanium.UI.createTableView({});
\nwindow.add(tableView);
\nvar row = Ti.UI.createTableViewRow({header: 'foobar'});
\nvar row2 = Ti.UI.createTableViewRow({header: 'foobar 2'});
\ntableView.setData([row, row2])'
Also added headers to the table_view_row_append.js file in LS\nfor testing. Same results.
\nTicket Reference: http://developer.appcelerator.com/helpdesk/view/75741
dupe #873
Added milestone where it was marked duplicate.