Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27634

Android: TableViewRow hasCheck Property Does Not Work as Expected


    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 8.0.0, Release 8.1.0, Release 8.2.0, Release 8.3.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Appc CLI 7.1.2
      Emulator: Nexus 4 (6.0 - API 23)
      Devices: Pixel 3a (10.0/Q - API 29), iPhone 6 (iOS 12)


      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?




            • Assignee:
              ybanev Yordan Banev
              ssaddique Sohail Saddique
            • Watchers:
              2 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration