Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1389] iOS: Add ability to dynamically add rows to TableView sections

GitHub Issuen/a
ResolutionCannot Reproduce
Resolution Date2013-05-06T08:42:34.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 09
Labelsapi, review
ReporterMatthew Lieder
AssigneeShameer Jan


It's quite easy to add rows to an existing TableView (tableview.appendRow(row)), however it just adds rows to the absolute bottom of the table and not to the bottom of the section. I can use insertRowBefore/After to add rows to existing sections, but it obviously doesn't work if all the rows have been deleted from the section. Closest I've gotten to finding a solution is section.add(row), but that doesn't update the UI and even when I do force the UI to update (by changing an attribute on the section object) weird UI glitches appear.

Basically what I need is something like TableView.appendRowToSection(row, section), or TableViewSection.add(row) to be fixed to work when the tableview's already been rendered.

Use case is toggling display of rows inside a section; I'm wanting the user to be able to collapse/expand sections just by tapping the section header.

Helpdesk reference: http://developer.appcelerator.com/helpdesk/view/31021">http://developer.appcelerator.com/helpdesk/view/31021

I've also attached some code that demonstrates what I'm attempting and the problems I'm experiencing. It should drop right into the Kitchen Sink app. To reproduce the section.add UI glitches, collapsing and then expand (by clicking it) the bottom header, then the middle header, then the top header. Notice how the lower headers seem to reproduce, with one staying in place and the other moving up.




  1. Stephen Tramer 2011-04-15

    Fits under the tableview umbrella, still a bug. What a nice test, too!

  2. Stephen Tramer 2012-07-25

    Still valid SDK 2.2.0.f9e938d.
  3. Junaid Younus 2012-08-14

    Tested on the iOS simulator using TiSDK 2.2.0v20120814103312, issue still exists.
  4. Fokke Zandbergen 2012-09-13

    Come on guys, nowadays dynamic scrolling in tables is a much. Not being able to do this with sectioned tabled is not an option! Raise the priority please!
  5. sundara nataraj 2012-10-19

    Thank you....you did nice job
  6. sundara nataraj 2012-10-22

    hi ... let there are 100 rows in each section .. so i want show only few ...at start when he click header total should show... when i implement ..it is not working ..please check that
  7. Shameer Jan 2013-05-06

    Issue does not reproduces , It is able to collapse/expand sections just by tapping the section header. Tested with Titanium Studio, build: Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) iOS iPhone Simulator: iOS SDK version: 6.0
  8. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source