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

\n

Does not work, header is only applied to first row

\n

var 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:

\n

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])'

\n

Also added headers to the table_view_row_append.js file in LS\nfor testing. Same results.

\n

Ticket Reference: http://developer.appcelerator.com/helpdesk/view/75741

{html}", "attachment": [], "flagged": false, "summary": "Android: tableview.appendRow only shows first row's header", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130339", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

dupe #873

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:39:59.000+0000", "updated": "2011-04-15T03:39:59.000+0000" }, { "id": "130340", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Added milestone where it was marked duplicate.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:59.000+0000", "updated": "2011-04-15T03:39:59.000+0000" }, { "id": "408791", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing issue due to time passed and irrelevance of the ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T06:23:14.000+0000", "updated": "2017-03-03T06:23:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }