{ "id": "62021", "key": "TIMOB-1389", "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": "15107", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-05-06T08:42:34.000+0000", "created": "2011-04-15T02:51:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "review" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:03:18.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}
It's quite easy to add rows to an existing TableView\r\n(tableview.appendRow(row)), however it just adds rows to the\r\nabsolute bottom of the table and not to the bottom of the section.\r\nI can use insertRowBefore/After to add rows to existing sections,\r\nbut it obviously doesn't work if all the rows have been deleted\r\nfrom the section. Closest I've gotten to finding a solution is\r\nsection.add(row), but that doesn't update the UI and even when I do\r\nforce the UI to update (by changing an attribute on the section\r\nobject) weird UI glitches appear.
\r\nBasically what I need is something like\r\nTableView.appendRowToSection(row, section), or\r\nTableViewSection.add(row) to be fixed to work when the tableview's\r\nalready been rendered.
\r\nUse case is toggling display of rows inside a section; I'm\r\nwanting the user to be able to collapse/expand sections just by\r\ntapping the section header.
\r\nHelpdesk reference: http://developer.appcelerator.com/helpdesk/view/31021
\r\nI've also attached some code that demonstrates what I'm\r\nattempting and the problems I'm experiencing. It should drop right\r\ninto the Kitchen Sink app. To reproduce the section.add UI\r\nglitches, collapsing and then expand (by clicking it) the bottom\r\nheader, then the middle header, then the top header. Notice how the\r\nlower headers seem to reproduce, with one staying in place and the\r\nother moving up.
Fits under the tableview umbrella, still a bug. What a nice\ntest, too!