Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23368] Windows: allowsSelection property of Table not working in WIndows 10.0

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterDee Clawson
AssigneeUnknown
Created2016-05-10T15:18:43.000+0000
Updated2018-02-28T19:55:39.000+0000

Description

Problem

The allows selection property is not doing anything on Windows 10.0, but is working correctly on Windows 8.1.

Test case

Windows 10 incorrectly allows selection: !http://i.imgur.com/cbSoAcc.png!
<Alloy>
    <Window class="container">
        <TableView id="exampleTable">
            <TableViewRow class="exampleRow" title='Apples' />
			<TableViewRow class="exampleRow" title='Bananas' />
			<TableViewRow class="exampleRow" title='Carrots' />
			<TableViewRow class="exampleRow" title='Potatoes' />
        </TableView>
    </Window>
</Alloy>
".container": {
	backgroundColor: '#FFFFFF'
}

"#exampleTable": {
	top: '20%',
	allowsSelection: false
}

".exampleRow": {
	color: "#000000"
}

Discussions

Expect the same functionality in Windows 10.0 as Windows 8.1. Using CLI to build the applications locally: appc titanium build --platform windows --target ws-local --wp-sdk 8.1 appc titanium build --platform windows --target ws-local --wp-sdk 10.0

Comments

  1. Josh Longton 2016-05-11

    Testing this on iOS, Windows 8.1 and 10 I found that allowsSelection on the Windows platform does not work. Using the code below I found that; * The alert was shown on both Windows 8.1 and 10 but not on iOS. * There was visual feedback when clicked on Windows 8.1 and 10 but not on iOS * The only difference between windows 8.1 and 10 is on 8.1 the background color of the table row is not changed when clicked. *Index.xml*
       <Alloy>
           <Window class="container">
               <TableView id="exampleTable">
                   <TableViewRow class="exampleRow" title="Apples" onClick="clickMe"/>
                   <TableViewRow class="exampleRow" title="Bananas" onClick="clickMe"/>
                   <TableViewRow class="exampleRow" title="Carrots" onClick="clickMe"/>
                   <TableViewRow class="exampleRow" title="Potatoes" onClick="clickMe"/>
                   <TableViewRow id="TableViewRow_1"/>
               </TableView>
           </Window>
       </Alloy>
       
    *Index.js*
       function clickMe(e) {
       	alert("click"); 
       }
       $.index.open();
       
    *Index.tss*
       
       ".container": {
       	backgroundColor: '#FFFFFF'
       }
        
       "#exampleTable": {
       	top: '20%',
       	allowsSelection: false
       }
        
       ".exampleRow": {
       	color: "#000000"
       }
       
  2. Josh Longton 2016-05-12

    *ENV* Windows 10 pro Ti SDK: 5.3.0.v20160509143032 Appc NPM: 4.2.5-5 App CLI: 5.3.0-44 Node v0.12.7
  3. Sharif AbuDarda 2016-12-12

    Hello [~jlongton], Can you confirm if this is still an issue in SDK 6.0.0.GA?

JSON Source