Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3226

Android: tableview.appendRow only shows first row's header

    Details

      Description

      {html}<div><p>tableView.appendRow(row) does not always render the row the same
      as tableView.setData(data), specifically I have seen differences
      with how it handles headers attached to rows. Take the following
      example (written inline, excuse any minor syntax errors here)</p>
      <p>Does not work, header is only applied to first row</p>
      <p>var tableView = Titanium.UI.createTableView({});<br>
      window.add(tableView);<br>
      var row = Ti.UI.createTableViewRow({header: 'foobar'});<br>
      tableView.appendRow(row);<br>
      var row2 = Ti.UI.createTableViewRow({header: 'foobar 2'});<br>
      tableView.appendRow(row2);<br>
      Works, header is applied to all rows:</p>
      <p>var tableView = Titanium.UI.createTableView({});<br>
      window.add(tableView);<br>
      var row = Ti.UI.createTableViewRow({header: 'foobar'});<br>
      var row2 = Ti.UI.createTableViewRow({header: 'foobar 2'});<br>
      tableView.setData([row, row2])'</p>
      <p>Also added headers to the table_view_row_append.js file in LS
      for testing. Same results.</p>
      <p>Ticket Reference: <a href=
      "http://developer.appcelerator.com/helpdesk/view/75741">http://developer.appcelerator.com/helpdesk/view/75741</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              aleard Alan Leard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2779
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration