Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15674] ListView: Set data including sections and items with one call

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMarco Cota
AssigneeUnknown
Created2013-11-06T14:22:43.000+0000
Updated2018-02-28T20:03:51.000+0000

Description

Request

A way to set data both sections and items with just one call into a listview. Example:

eventList.setData(data);

Current Behavior

Customer currently have a listview and they create 20 to 30 sections dynamically but counting the items in each section they made near 200 "cross the bridge" actions and they are worried about impact in the performance.

Comments

  1. Moshe Marciano 2013-11-06

    Also, it would be nice to allow Alloy XML binding with sections. plus, this is not iOS only, Android too thanks
  2. Moshe Marciano 2013-12-02

    also, what about the ability to setData of only part of the data? imagine I have updates to the live listview, but only two rows changed out of 200, I am now forced to update all 200 of them? very expensive

JSON Source