{ "id": "61326", "key": "TIMOB-694", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:56.000+0000", "created": "2011-04-15T02:34:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "header", "ios", "row", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:56.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}

[Copied from Titanium Developer ticket]

\n

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
\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);\n
\n

Works, header is applied to all rows:

\n
\nvar 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
{html}", "attachment": [], "flagged": false, "summary": "tableview.appendRow only shows first row's header", "creator": { "name": "noah", "key": "noah", "displayName": "Noah", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "noah", "key": "noah", "displayName": "Noah", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123835", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Fixed long ago (1.4.0?) and validated in 1.6.0 RC1.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:34:38.000+0000", "updated": "2011-04-15T02:34:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }