Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24104] Windows: appendrow does not work on a tableview with no data

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-11-22T12:16:29.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-11-04T15:56:35.000+0000
Updated2016-12-22T22:52:06.000+0000

Description

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

Comments

  1. Kota Iguchi 2016-11-22

    https://github.com/appcelerator/titanium_mobile_windows/pull/895
  2. Samir Mohammed 2016-12-22

    Verified fix was able to see data in the tableview. *Environment*
       Nokia Lumia 640 LTE (RM-1073)
       version 1607
       OS Build: 10.0.14393.576
       
       Operating System
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 64bit
       

    CPUs = 4

    Memory = 17034395648 Node.js Node.js Version = 4.4.4 npm Version = 2.11.3 Titanium SDK SDK Version =6.1.0.v20161222061413
    Closing ticket.

JSON Source