Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

tableView scrolling trouble

I show tableview about 50 - 100 rows with remote images. When i scrolling down my app hangs with no messages. I use different classes for rows. I thought that problem is in memory but 50 rows… I use titanium SDK When i used SDK 1.3.0 i did not have this problem.
>Source code:

for (var i = 0, n = items.length; i < n; i++) {
  var row = Ti.UI.createTableViewRow({
    newsItem: items[j],
    className: "news_list_item_" + i,
    height: "auto",
    width: "auto",
    rightImage: "../images/arrow.png",
    hasChild: true
context.tableView = Ti.UI.createTableView({
  data: data,
  top: context.searchView.size.height,
  bottom: context.toolbar.size.height
— asked September 27th 2010 by Pasha Tsipinio
  • crash
  • hangs
  • scrolling
  • tableview

1 Answer

  • use tableView.setData(data)

    — answered September 27th 2010 by Varun Atluri
    1 Comment
    • Thanks for the reply. unfortunately it did not help me. I decreased number showing rows to 25!!! but application proceed hangs

      — commented September 29th 2010 by Pasha Tsipinio
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.