Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19085] Windows: Adding items to a ListSection after creation of ListView doesn't update UI

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-07-08T15:14:05.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeKota Iguchi
Created2015-06-26T20:35:17.000+0000
Updated2015-12-02T23:06:20.000+0000

Description

In testing the RSS Reader sample, I'm seeing nothing happen once we do get the RSS feed fetched. Once I loaded everything up in Debug mode in VS2013, I see the following logs when it should be showing the new items in the ListView:
TitaniumKit 000000087 Fri Jun 26 16:28:40 2015 WARN: ListSection::items_set_notify: Unimplemented.
Basically, our code works fine if all the items are created first, then added to sections, then the ListView is created from the pre-populated section. But if you generate a ListView with one section, and add items to it later async, nothing actually happens visually. We haven't hooked all that code up to do anything. We have methods for modifying the sections on a view, and I think that should work fine post-create, but the item manipulation at the section level just never triggers the view to add them.

Comments

  1. Kota Iguchi 2015-07-06

    https://github.com/appcelerator/titanium_mobile_windows/pull/353
  2. Kota Iguchi 2015-07-08

    https://github.com/appcelerator/titanium_mobile_windows/pull/353
  3. Lokesh Choudhary 2015-07-10

    Verified the fix. Adding listsection after creation of listview updates the UI successfully. Closing. Environment: Appc Studio: 4.1.0.201507071122 Ti SDK: 4.2.0.v20150710092422 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0 APPC CLI: 4.1.0 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1

JSON Source