Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2193] tableView event after appendSection

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-04T21:11:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterQuang Pham
AssigneeMauro Parra-Miranda
Created2013-01-14T02:38:54.000+0000
Updated2016-03-08T07:41:11.000+0000

Description

*Expected behavior* All appended rows should be clickable. *Actual behavior* Only the first two rows are clickable. *Test case*
var win = Ti.UI.createWindow();

var table = Ti.UI.createTableView({
	data : loadRow()
});
win.add(table);

table.addEventListener('click', function(e) {
	alert('Clicked');

	table.appendSection({
		rows : loadRow()
	}, {
		animated : true
	});
});

win.open();

function loadRow() {
	var rows = [];
	for (var i = 0; i < 2; i++) {
		rows.push(Ti.UI.createTableViewRow({
			title : 'Row ' + i
		}));
	};
	return rows;
}

Comments

  1. Quang Pham 2013-01-14

    similar for insertSectionBefore, insertSectionAfter
  2. Jamie Buckley 2013-04-04

    Hi Quang, Can you provide more information on this issue: - Titanium SDK version - Titanium Studio Version - Platform - Platform version For more information on how to file bugs please read: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report

JSON Source