locked
SelectionList only rendering as type radio, not dropdown. RRS feed

  • Question

  • User1399102720 posted

    I'm new to mobile development so forgive me if I'm missing something simple.

    I'm using the <Mobile:SelectionList> control in a mobile application and I want a dropdown rendered. When I run the app, the SelectionList renders as a list of radio buttons even when the SelectType attribute is set to dropdown. The only SelectType attribute that renders correctly is Checkbox. Everything else renders as radio buttons.

    The emulator that I'm using for display is Openwave v7. I'm binding the control in the codebehind and the aspx page shows as follows:

     <mobile:SelectionList SelectType="DropDown" ID="drpProducts" Runat="server"></mobile:SelectionList>

    I know that the emulator can show dropdowns because of the example that I see at this site:

    http://www.hopstop.com/pda?city1=newyork&city2=newyork&sid=&

    I also notice that each of the items in my SelectionList control renders WITHOUT a value attribute. Why would that be?

    Any help would be greatly appreciated.
     

    Friday, July 6, 2007 3:10 PM

Answers

  • User555994442 posted

    The problem is that ASP.Net recognises the Openwave emulator as a wml11 device. If you add a new browser file under App_Browsers with the following spec it should work fine:

    <browsers>
      <browser refID="OPWVSDK">   
        <capabilities>
          <capability name="RendersWmlSelectsAsMenuCards" value="False" />
          <capability name="preferredRenderingType" value="xhtml-basic" />
        </capabilities>
      </browser>
    </browsers>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 29, 2007 10:35 PM

All replies

  • User1542577763 posted

    I managed to get SelectList rendered as dropdown with my installation of Openwave emulator. On postback,the correct value is not registered.

    Got it working with radio buttons though.

    HTH


     

    Friday, July 13, 2007 10:29 AM
  • User1399102720 posted

     What did you have to do to get the SelectList rendered as a dropdown in your Openwave Emulator. Did you have to override the WML Adapter class or something? If so what needs to change?
     

    Friday, July 20, 2007 12:16 PM
  • User555994442 posted

    The problem is that ASP.Net recognises the Openwave emulator as a wml11 device. If you add a new browser file under App_Browsers with the following spec it should work fine:

    <browsers>
      <browser refID="OPWVSDK">   
        <capabilities>
          <capability name="RendersWmlSelectsAsMenuCards" value="False" />
          <capability name="preferredRenderingType" value="xhtml-basic" />
        </capabilities>
      </browser>
    </browsers>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 29, 2007 10:35 PM
  • User1399102720 posted

     Dorph,

     Thanks so much! That was it! I've got a lot to learn with mobile development. Thanks again!
     

    Monday, July 30, 2007 11:58 AM