Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

TableView and AppendRow displays nothing when table has one row?

I have this code in a window:

// table view
var tview = Titanium.UI.createTableView({
  top: 50
});

// add table view to the window
Titanium.UI.currentWindow.add(tview);

tview.appendRow({hasChild:true,title: "test row"});

Using Android 1.6 in the emulator, Titanium 1.2.1 + SDK 1.4.1.1 on my Mac, the above code does not render a table.

However, if I add another row

tview.appendRow({hasChild:true,title: "another row"});

BOTH rows show up. Been stuck on this for 2 days. Is this a known bug? Should I not be appending rows this way? Would appreciate any suggestions.

— asked November 3rd 2010 by Brian Hogan
  • android
  • appendrow
  • tableview
0 Comments

5 Answers

  • Please download the 1_4_X Continuous Integration build, documentation is in the Programming Guides section of our documents, and verify that the problem still exists. If it does, please create a Lighthouse ticket and assign it to me.

    — answered November 4th 2010 by Don Thorp
    permalink
    0 Comments
  • This is still a bug with 1.5.0 and 1.5.1 as well.

    — answered December 14th 2010 by Michael Lykke
    permalink
    0 Comments
  • Are you adding the second row after opening the window? A small, complete, sample that shows the problem would be helpful.

    — answered December 14th 2010 by Don Thorp
    permalink
    0 Comments
  • Created a ticket in Lighthouse: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/2577-android-tableview-does-not-s#ticket-2577-2

    — answered December 14th 2010 by Ryan Asleson
    permalink
    0 Comments
  • This is fixed on the master branch and should be available on our continuous build server within about an hour.

    — answered December 17th 2010 by Bill Dawson
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.