Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1993

iOS: appendRow to a TableViewSection doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1.1 GA

      Description

      AppendRow/InsertRow... to a TableViewSection absolutely doesn't work! Tested it anyone before publication in the Ti Docs?

      var win = Ti.UI.createWindow({
      	backgroundColor: "white"
      });
       
      var table = Ti.UI.createTableView({
      	width: Ti.UI.FILL, height: Ti.UI.FILL,
      	style: Ti.UI.iPhone.TableViewStyle.GROUPED
      });
       
      var section_1 = Ti.UI.createTableViewSection();
      var section_2 = Ti.UI.createTableViewSection();
       
      section_1.add(Ti.UI.createTableViewRow({title: "ROW_1"}));
      section_1.add(Ti.UI.createTableViewRow({title: "ROW_2"}));
      section_1.add(Ti.UI.createTableViewRow({title: "ROW_3"}));
       
      var addNextRow = Ti.UI.createTableViewRow({title: "Add next row"});
       
      addNextRow.addEventListener("click", function(){
      	section_2.appendRow(Ti.UI.createTableViewRow({title: "Added row..."}));
      });
       
      section_2.add(addNextRow);
       
       
      table.data = [section_1, section_2];
       
       
      win.add(table);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpmiranda Mauro Parra-Miranda
                Reporter:
                sko Matej
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code