Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27634] Android: TableViewRow hasCheck Property Does Not Work as Expected

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.0.0, Release 8.1.0, Release 8.2.0, Release 8.3.0
Fix Version/sn/a
ComponentsAndroid
LabelsengSchedule, tableview
ReporterSohail Saddique
AssigneeYordan Banev
Created2019-11-27T10:48:56.000+0000
Updated2020-02-17T12:03:00.000+0000

Description

Using a TableViewRow with the hasCheck property produces differing results for iOS and Android, under certain conditions. *Test Steps* 1. Create a new classic app 2. Download app.js from here and copy-paste the contents into the empty app.js 3. Run the app on iOS and Android (using any recent SDK) 4. Tap and select one cell from Table 1, 2 and 3 *Actual result* iOS: A check-mark appears on each selected cell in all 3 tables. Android: A check-mark appears only under Table 1 and Table 2. No check-mark appears under any cell in Table 3. *Workaround (Android)* In app.js, go right towards the bottom. You will see the following code:
table3.addEventListener('click', function(e) {
        if (e.rowData.hasCheck) {
            e.rowData.hasCheck = false;
        } else {
            e.rowData.hasCheck = true;
        }
If you change _rowData_ to just _row_ (as in the previous two tables), and re-run the app, Android will now show the check-mark upon selection in Table 3. *Expected result* Using _rowData_ or _row_ both work on iOS. Only _row_ works for Android whereas both should work?

Attachments

FileDateSize
app.js2019-11-26T15:59:47.000+00007639

Comments

No comments

JSON Source