{ "id": "63442", "key": "TIMOB-2810", "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": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:08.000+0000", "created": "2011-04-15T03:30:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "backgroundcolor", "ios", "release-1.6.0", "reported-1.5.1", "rplist", "tableviewrow" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:08.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}

Example code:

\n
\nvar win = Ti.UI.createWindow({backgroundColor:\"white\"});\n\n// create table view data object\nvar rows = [\n    Ti.UI.createTableViewRow({title:'Row 1'}),\n    Ti.UI.createTableViewRow({title:'Row 2'}),\n    Ti.UI.createTableViewRow({title:'Row 3'}),\n    Ti.UI.createTableViewRow({title:'Row 4'})\n];\n\nvar tableview = Titanium.UI.createTableView({\n    data:rows\n});\n\nvar tableRowSelect = function(rows, index, tableView) {\n for (var i=0;i<rows.length;i++) {\n   Ti.API.log('Checking row index '+i);\n   if(i == index) {\n     Ti.API.log('Selected');\n     rows[i].backgroundColor = '#fff';\n   } else {\n     Ti.API.log('Deselected');\n     rows[i].backgroundColor = '#d6d6d6';\n   }\n }\n};\n\ntableview.addEventListener('click', function(e) {\n       tableRowSelect(rows, e.index, tableview);\n});\n\nwin.add(tableview);\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "Changing table row BG color doesn't redisplay with new color", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129470", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [88f08605a940503f889a5287bc0f09af2e5c9a22])\n[#2810 state:fixed-in-qa] Force table row redraw\non BG color change. \nhttps://github.com/appcelerator/titanium_mobile/commit/88f08605a940...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:08.000+0000", "updated": "2011-04-15T03:30:08.000+0000" }, { "id": "129471", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [8e8e0481abb36fc73889692da3e815d5d0dd194d])\n[#2810 state:fixed-in-qa] Force table row redraw\non BG color change. \nhttps://github.com/appcelerator/titanium_mobile/commit/8e8e0481abb3...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:09.000+0000", "updated": "2011-04-15T03:30:09.000+0000" }, { "id": "129472", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

[INFO] Titanium SDK version: 1.5.2 (01/12/11\n16:50 8e8e048) 4GT ipod touch (4.2.1), 3gt ipod (4.0.1) iphone 3\n(3.1.3). [INFO] Titanium SDK version: 1.6.0 (01/12/11\n16:49 1b81d26) 4GT ipod touch (4.2.1), 3gt ipod (4.0.1) iphone 3\n(3.1.3).

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:09.000+0000", "updated": "2011-04-15T03:30:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }