{ "id": "149389", "key": "TIMOB-19158", "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": null, "resolutiondate": null, "created": "2015-07-02T17:28:45.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "alloy", "ios", "listview", "slider", "switch", "updateItemAt" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:15.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I have some forms created with ListViews that use sliders and toggles. I am able to programmatically update items in the ListView either with the standard template and custom templates, but this fails when I try to update custom template items with a slider or switch control.\r\n\r\nTo demonstrate the problem, I'm including sample code that shows the two controls in a ListView and two \"reset\" buttons that reset the slider and switch to default values with and without animation. I noticed the effect with and without animation is different. Without animation, the reset works the first time is done, but fails thereafter. With animation, it works at times, then it starts failing leaving the two controls in a strange state (not the value set by the user, nor the default value the reset applies)\r\n\r\nExpected behavior: ListSection.updateItemAt() should update the Switch and Slider controls with the set values (Slider = 1, Switch = off), and render them properly regardless of the animation setting, and how many times the row is updated.\r\n\r\nAlso note how {{slider:value=\"75\"}} is defined for the slider in the Alloy XML, yet it is not applied to the slider when rendered at startup.\r\n\r\n{code:xml}\r\n\r\n\t\r\n