{ "id": "123971", "key": "TIMOB-16083", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": null, "resolutiondate": null, "created": "2013-12-18T12:23:43.000+0000", "priority": null, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:19.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "If I call `selectItem` directly after adding a bunch of sections and items it won't work. I have to wait for the `postlayout` event.\r\n\r\nIt would be nice if this was handled internally.", "attachment": [], "flagged": false, "summary": "ListView: Allow `selectItem` to be called before layout is finished", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.2.0-beta3", "comment": { "comments": [ { "id": "285830", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am curious of the use case when it is advantageous to call selectItem method before the postlayout event as opposed to after the postlayout event. I would appreciate if you can explain a bit more.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T07:05:33.000+0000", "updated": "2013-12-26T07:05:33.000+0000" }, { "id": "285837", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "It is simply a matter of convenience really. When I fill a ListView I and want to have a row pre-selected its inconvenient to add an eventlistener to wait for the postlayout event, specially because this event fires lots of time so I can't use a quick anonymous function but have to create a separate function and remove the eventlistener from as soon as it is called. It would make the code cleaner if I can call the method anytime and the API would just check if a row was preselected after finishing filling the ListView.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-12-26T07:29:41.000+0000", "updated": "2013-12-26T07:29:41.000+0000" }, { "id": "285865", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Makes sense. Moving this enhancement request to engineering for further evaluation and prioritization.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T16:50:49.000+0000", "updated": "2013-12-26T16:50:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }