Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2755] row.hasCheck on Android

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsAndroid
Labelsandroid, defect, enterprise, release-1.6.0, reported-1.5.1, reported-1.6.0, rplist
Reporteraarmenta
AssigneeDon Thorp
Created2011-04-15T03:28:42.000+0000
Updated2011-04-17T02:00:00.000+0000

Description

i'm trying to change the hasCheck property when a row is clicked but the check icon never shows. i'm using the sdk 1.5.1 and works only for ios.

Comments

  1. Dawson Toth 2011-04-15

    Sample Code

       /**
        * Demo to demonstrate that "hasCheck" can't be set on Android. Shows you
        * a table with 3 rows. Clicking should toggle the "hasCheck". Odd rows will
        * start off checked.
        */
       var win = Titanium.UI.createWindow({
           title: 'Android HasChecks',
           backgroundColor:'#fff'
       });
       
       /**
        * Create a table with two rows, one checked initially and the other not.
        */
       var table = Ti.UI.createTableView({data: [
           Ti.UI.createTableViewRow({ hasCheck: true, height: 30 }),
           Ti.UI.createTableViewRow({ hasCheck: false, height: 30 })
           ]
       });
       
       /**
        * Clicking a row should toggle its "hasCheck".
        */
       table.addEventListener('click', function(evt) {
           evt.row.hasCheck = !evt.row.hasCheck;
       });
       win.add(table);
       win.open();
       

    Associated Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/63071">http://developer.appcelerator.com/helpdesk/view/63071

  2. Marshall Culpepper 2011-04-15

    (from [ced322fc0662976d349a46eebe640ae1779bd1d9]) override the right setProperty() in TableViewRow so we react to properties being changed in the view [#2755 state:fixed-in-qa]
    https://github.com/appcelerator/titanium_mobile/commit/ced322fc0662976d349a46eebe640ae1779bd1d9"> https://github.com/appcelerator/titanium_mobile/commit/ced322fc0662...

  3. hal 2011-04-15

    Is #2842 a duplicate of this ticket?

  4. Don Thorp 2011-04-15

    Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

JSON Source