Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20601] Windows: Support bindId property on ListView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-04-04T16:45:11.000+0000
Affected Version/sRelease 5.2.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsbind, listView, listitem, qe-5.3.0, windows_phone
ReporterZakhar Zhuravlev
AssigneeKota Iguchi
Created2016-03-16T11:21:45.000+0000
Updated2016-04-26T23:09:13.000+0000

Description

It's affected 5.2.0. On windows phone event.bindId always 'undefined' in itemclick handler. So I need opportunity to determine when user clicks specific elements inside listview item. It's working fine on ios and android: *index.js:*
$.section.setItems([
	{ info: { text: 'edit' }}
]);

function onItemclick(e) {
    if(e.bindId == 'editButton') {
    	alert('editButton');
    } else {
        alert('something else...');
    }
}

$.win.open();
*index.xml:* {noformat} {noformat}

Comments

  1. Sharif AbuDarda 2016-03-16

    Hello, Thanks for sharing your concern, It will be much helpful if you provide a full reproducible test code for regenerating the issue you mentioned. As you have mentioned this is working in iOS and Android. It's always better to provide sample code for clear understanding of the problem which leads to faster support. Please provide a sample code. We will test it in our environment and let you know. Regards, Sharif
  2. Zakhar Zhuravlev 2016-03-17

    Hello, I've updated issue. This code is working on android and ios, but not on windows phone.
  3. Kota Iguchi 2016-03-31

    https://github.com/appcelerator/titanium_mobile_windows/pull/601
  4. Christopher Williams 2016-04-01

    [~kota] My cherry-pick over to 5_3_X didn't work. Can you see if this can be back ported to the 5_3_X branch as well? If it's a significant effort, we can juts keep this marked as fixed in 5.4.0.
  5. Kota Iguchi 2016-04-03

    https://github.com/appcelerator/titanium_mobile_windows/pull/604
  6. Harry Bryant 2016-04-26

    Verified as fixed, bindId property no longer returns as "undefined" Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201604081249 Ti SDK: 5.3.0.v20160421080259 Appc NPM: 4.2.5-3 Appc Core: 5.3.0-34 Node: v4.4.2 *Closing Ticket.*

JSON Source