Is selectionMode of 'none' in a ListView broken in HTML5? RRS feed

  • Question

  • I'm asking because I have some test code with a ListView and three different sized divs inside. And each of the three divs get a mousedown effect like they're being tapped when in the local machine/simulator. I figured selectionMode of none would stop anything in the ListView from being tapped.


    <div data-win-control="WinJS.UI.ListView" data-win-options="{selectionMode: 'none'}" style="height:100%;">
        <div style="width:1139px;height:541px;background-color:#808080;float:left;margin-right:100px;">
        <div style="width:1100px;height:274px;background-color:#808080;float:left;margin-right:100px;">
        <div style="width:790px;height:430px;background-color:#808080;float:left;">
            most popular

    Tuesday, January 24, 2012 8:35 PM


  • Nope!

    When you set selectionMode to none, that means you cannot select it.  The item still will act as if you pushed on it.

    Selection is the little check mark you get when selecting items.  Try it!  Remove that attribute click on it with the mouse and drag down slightly to see the selection.


    Jeff Sanders (MSFT)
    Tuesday, January 24, 2012 9:28 PM