{ "id": "63387", "key": "TIMOB-2755", "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": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:00.000+0000", "created": "2011-04-15T03:28:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "enterprise", "release-1.6.0", "reported-1.5.1", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:00.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}
i'm trying to change the hasCheck property when a row is clicked\nbut the check icon never shows. i'm using the sdk 1.5.1 and works\nonly for ios.
\n/**\n * Demo to demonstrate that \"hasCheck\" can't be set on Android. Shows you\n * a table with 3 rows. Clicking should toggle the \"hasCheck\". Odd rows will\n * start off checked.\n */\nvar win = Titanium.UI.createWindow({\n title: 'Android HasChecks',\n backgroundColor:'#fff'\n});\n\n/**\n * Create a table with two rows, one checked initially and the other not.\n */\nvar table = Ti.UI.createTableView({data: [\n Ti.UI.createTableViewRow({ hasCheck: true, height: 30 }),\n Ti.UI.createTableViewRow({ hasCheck: false, height: 30 })\n ]\n});\n\n/**\n * Clicking a row should toggle its \"hasCheck\".\n */\ntable.addEventListener('click', function(evt) {\n evt.row.hasCheck = !evt.row.hasCheck;\n});\nwin.add(table);\nwin.open();
\n
\n(from [ced322fc0662976d349a46eebe640ae1779bd1d9])\noverride the right setProperty() in TableViewRow so we react to\nproperties being changed in the view [#2755\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/ced322fc0662...
Is #2842 a duplicate of this ticket?
Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a