Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2842] Android: Setting hasCheck after specifying hasChild is false does not work

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:13.000+0000
Affected Version/sn/a
Fix Version/sSprint-2011-09
ComponentsAndroid
Labelsandroid, enterprise, feature, reported-1.6.0, rplist, tbs-1.7.0
ReporterRick Blalock
AssigneeDon Thorp
Created2011-04-15T03:30:53.000+0000
Updated2011-04-17T02:00:13.000+0000

Description

Cannot programmatically set hasCheck while hasChild is false.

Enterprise ticket here: http://developer.appcelerator.com/helpdesk/view/66121">http://developer.appcelerator.com/helpdesk/view/66121

Android SDK 2.2 - Ti 1.6

var win = Ti.UI.createWindow({
    backgroundColor:'red',
});
 
 
 
var row = Ti.UI.createTableViewRow({
        color:'#333',
        text: 'Not Working ',
        hasChild:false
    });
 
var row1 = Ti.UI.createTableViewRow({
           color:'#333',
           text: 'Working',
    });
 
row.hasCheck = true;
row1.hasCheck = true;
var table = Ti.UI.createTableView({data:[row,row1]});
 
win.add(table);    
win.open();

Comments

  1. Don Thorp 2011-04-15

    Staging in 1.6.0 sto see if we can work it in.

  2. hal 2011-04-15

    Is this a duplicate of #2755?

  3. Andreas sandberg 2011-04-15

    Hal, no it's not a duplicate, setting the hasChild property to false makes it so you can't set the hasCheck property to true.

  4. Bill Dawson 2011-04-15

    (from [eaeb22cec2cd34690a10d41cfe68f04b86ffdde1]) Make sure the "check" and "child" tableview row rightimage drawables can show despite the other one being explicitly set to false. [#2842 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/eaeb22cec2cd34690a10d41cfe68f04b86ffdde1"> https://github.com/appcelerator/titanium_mobile/commit/eaeb22cec2cd...

  5. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/01/11 12:40 eaeb22c) on
    G1 1.6
    Nexus One 2.2.2
    Emulator 2.1
    iPhone 4 OS 4.2.1

    var row = Ti.UI.createTableViewRow({

           color:'#333',
           text: 'Not Working ',
           hasChild:false
       });
       

    TableViewRow.text is an undocumented property, must use title to work on iOS

JSON Source