Description
appendRow on a tableview with no data does not append any data
var win = Ti.UI.createWindow({ backgroundColor: 'green'});
var tableView = Ti.UI.createTableView({
// data: [{title: 'test'}]
});
// appending row data to tableView
for (var i = 1; i <= 3; i++) {
var stringTitle = 'row data ' + i;
var rowData = Ti.UI.createTableViewRow({
title: stringTitle
});
tableView.appendRow(rowData);
}
// appending an array of rows to table view
var arrayRows = [{
title: 'array row 1'
}, {
title: 'array row 2'
}, {
title: 'array row 3'
}];
tableView.appendRow(arrayRows );
win.add(tableView);
win.open();
Steps to reproduce
Add the above code to an existing app.js
Build for Windows
Actual result
No data in the tableview
Expected result
There should be data in the tableview
https://github.com/appcelerator/titanium_mobile_windows/pull/895
Verified fix was able to see data in the tableview. *Environment*
Closing ticket.