Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2634] iOS: Tableviews remembering selected rows after setData or Append

GitHub Issuen/a
ResolutionCannot Reproduce
Resolution Date2012-07-20T15:44:54.000+0000
Affected Version/sRelease 1.5.1
Fix Version/sn/a
ReporterKevin McGrath
AssigneeNeeraj Gupta


Since 1.5(.1), My tableviews are remembering their selected state after a setData (and sometimes even an append).

Should I create a table with 10 rows and select (via click) row 3, upon replacing that tables Data through setData, row 3 will still be selected. If the user clicks on another row at this point, TWO rows will appear selected. Using setData at this point causes BOTH rows to remember the selected state and allow the user to now select a third.

the app.js used to test this is available here: http://pastie.org/1392705">http://pastie.org/1392705

  • Ti SDK 1.5.1
  • iOS SDK 4.2.1 -- iPad and iPhone simulators.
  • iPad 3.2.2
  • iPad 4.2.1


  1. Vishal Duggal 2012-07-20

    Doing setData now deselects any selected rows. Keeping a selected row on appended data is ok.
  2. Neeraj Gupta 2012-07-20

    Does not reproduce with release 2.1.0.
  3. Lee Morris 2017-03-09

    Closing ticket as the issue cannot be reproduced.

JSON Source