[TIMOB-2053] Blackberry: Tableview.setData crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-06-17T13:19:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | BB Preview 2 |
Components | iOS |
Labels | blackberry, defect |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T03:09:08.000+0000 |
Updated | 2011-06-17T13:19:16.000+0000 |
Description
See http://developer.appcelerator.com/helpdesk/view/48551">Helpdesk 48551
Example:
var win = Ti.UI.currentWindow;
var data = [
{title:'I am row text 1', rightImage:'images/folder.png', leftImage:'images/report.png'},
{title:'I am row text 2', rightImage:'images/folder.png', leftImage:'images/report.png'},
{title:'I am row text 3', rightImage:'images/folder.png', leftImage:'images/report.png'},
{title:'I am row text 4', rightImage:'images/folder.png', leftImage:'images/report.png'},
{title:'I am row text 5', rightImage:'images/folder.png', leftImage:'images/report.png'},
{title:'I am row text 6', rightImage:'images/folder.png', leftImage:'images/report.png'}
];
var data1 = [
{title:'new row text one', rightImage:'images/folder.png', leftImage:'images/report.png'},
{title:'new row text two', rightImage:'images/folder.png', leftImage:'images/report.png'}
];
var tableview = Ti.UI.createTableView({data:data, rowHeight:120});
tableview.addEventListener('click', function(e)
{
tableview.setData(data1);
/*var w = Ti.UI.createWindow();
var l = Ti.UI.createLabel({text:'you clicked row ' + e.index});
w.add(l);
w.open();*/
});
win.add(tableview);
win.open();
We have another customer interested in this.
Additional HD Ticket
http://developer.appcelerator.com/helpdesk/view/67271">http://developer.appcelerator.com/helpdesk/view/67271
Closing because no longer applicable to current version of BlackBerry