[TIMOB-20601] Windows: Support bindId property on ListView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-04-04T16:45:11.000+0000 |
Affected Version/s | Release 5.2.0 |
Fix Version/s | Release 5.3.0 |
Components | Windows |
Labels | bind, listView, listitem, qe-5.3.0, windows_phone |
Reporter | Zakhar Zhuravlev |
Assignee | Kota Iguchi |
Created | 2016-03-16T11:21:45.000+0000 |
Updated | 2016-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:*
{noformat}
$.section.setItems([
{ info: { text: 'edit' }}
]);
function onItemclick(e) {
if(e.bindId == 'editButton') {
alert('editButton');
} else {
alert('something else...');
}
}
$.win.open();
*index.xml:*
{noformat}
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
Hello, I've updated issue. This code is working on android and ios, but not on windows phone.
https://github.com/appcelerator/titanium_mobile_windows/pull/601
[~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.
https://github.com/appcelerator/titanium_mobile_windows/pull/604
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.*