Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5353] iOS - Listview / ListSection : Scroll to top when set new items

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusClosed
ResolutionWon't Do
Resolution Date2017-11-14T20:35:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios
Reporternicolomonili
AssigneeShak Hossain
Created2017-11-07T15:55:21.000+0000
Updated2017-11-14T20:35:16.000+0000

Description

*Actual scenario* : _(almost always i use the ListView with only one section)_ When i have to update the items of a section i do this:
listView.sections[0].setItems(newdata);
listView.scrollToItem(0,0,false);
*My request*: Add a new parameter to the function *setItems* (a boolean value?) to enable (if pass true) the scroll to top without having to call the function *scrollToItem*. Example:
listView.sections[0].setItems(newdata,true);
Could it be an interesting feature to implement?

Comments

  1. Sharif AbuDarda 2017-11-11

    Hello, can you provide a native guide on this? is this supported natively? Thanks.
  2. nicolomonili 2017-11-13

    I don't think it's a native feature
  3. Sharif AbuDarda 2017-11-14

    Hello, If the feature is not supported natively, We will not support that with Appcelerator. Maybe in future when this is done natively our engineers might consider it. Thanks.

JSON Source