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.
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.
-
This is still a bug with 1.5.0 and 1.5.1 as well.
-
Are you adding the second row after opening the window? A small, complete, sample that shows the problem would be helpful.
-
Created a ticket in Lighthouse: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/2577-android-tableview-does-not-s#ticket-2577-2
-
This is fixed on the master branch and should be available on our continuous build server within about an hour.